Trains are higher than cars so you often step up when you are boarding it. Compare this with getting into a car where you have to sit down and "scrunch up" your body.
It's helpful to learn the prepositions with their phrasal verbs, so:
get in a car
get out of a car
get on a plane, a bus, a train, a tram, a trolley-car etc.
get off a plane ... etc;
Hope that helps!
Lucie