It's also easier to stop a train, get off a train, or prevent collateral damage in case of malice/accident. Survivors are also a lot more likely if there is an accident, mostly because of gravity.
Assuming passenger trains of course. I think a freight hijacking is far more likely. The danger posed by a hijacked freight are evident from the huge numbers of lives lost from exploding petroleum trains over the past few decades.