How does train travel work?
Whenever you travel by train, the game will briefly show you sitting in the carriage, after which you get a transition screen (like when you sleep) and arrive at the destination.
It sounds like you experienced some kind of bug.