Also trains don't change speed super often so they can have their prime mover running in the power band all of the time. A car changes speed at lot so its more inefficient to have the prime mover running in its power band constantly to drive the generator.