To be frank about it, trains are a much softer target, since they can be derailed with an explosion on the track, or even a bit of welding.
Blowing up an airplane requires either bringing an explosive on board, or the use of a rocket-propelled grenade or full-on missile. Quite aside from the risks of hijacking mentioned in a sibling comment.
However, blowing up a bomb on a cruising plane will probably kill everyone. Blowing up a bomb on a cruising train will probably not - many people will be far from the blast and derailing trains are more survivable than planes breaking up at altitude.
It is still true; Holding a train full of passengers hostage is foolish because there's no possibility that a train driver could disengage the rails.
Holding a plane full of passengers hostage is less foolish because the pilots/flight attendants can be bribed and bartered- it's not a technical impossibility to do certain actions, so there is more of an incentive.
Buses, maybe. Trains: Nope. Doors are locked from the inside, usually aren't accessible while moving and even someone would get inside, well, you can't get off the tracks. You'll get a red signal and a forced braking shortly afterwards. It's really, REALLY hard (by design) to wreck something on purpose with a modern high speed train.
Which wasn't a hostage situation or a hijacking to get elsewhere, and it has nothing to do with the passenger security theater which is what this thread is about...
While you can hijack a train, you can't fly it to a friendly country, and you can't fly it into a building, so it's a very different threat model.