Roads, highways and gas are massively subsidized, much more per kilometer travelled than rail. I think if you factor in spared road maintenance alone, from travellers using the train instead of their cars, you might see the operation is actually saving public money.