Airlines are subject to market competition since any competitor around the globe can spot a poorly run route and buy their planes into those slots. If they can execute more efficiently than you, they can afford to lower prices (or increase the level of service) more than you, and thus put you out of business.
Trains do not work this way. No amount of investment can overcome the cushy institutional-rot, laziness, and demotivation that inevitably results from being a monopoly, as most train routes are not subject to competitive forces due to the real world constraints of the infrastructure needed.