It is because the past train needs fire and coal to power the engine to move, and the engine is a steam engine, so the fire produce heat to the engine.
That time, they also have cars, but after electric train was invented, then the train was changed to electric. So, they don't use engine any more, but motor.
火車 is just a name now, so, please don't bring fire into the train.