Small e vehicles can do 30mph, which is likely effectively the same speed as a train when you consider lack of waiting, fare payment, intermediate stops, delays, transportation to/from the station.
EVs are much more flexible for modes and platforms than ices because all the motor form favors exist, they are simple (motor battery brakes) modular (removable batteries) and don't involve smelly gas and oil.