You can be travelling in or on a bus or a train!
Confusing? Not really, as both are right. If you think about it when you board a bus or a train you get into the vehicle but then you are also on it, in the same way that you are on a boat or a ship.
But you can only be on a donkey, horse or a bicycle.