You’d think so. But at least Germany struggles massively with missing personnel to staff trains (which includes roles beyond the driver). As far as I know there is no automated solution on the horizon for any form or scale of train traffic. The only self driving trains I have experienced require tight control of the rail environment (entirely underground or lifted above the surface) and special stations with airlocks.
Maybe there is just more money in self-driving cars. But I’m pretty sure they will happen before wide spread automated trains. Which sucks.
Because it is “the one joke” of transphobes