And this is how the Japanese system works so well. The trains don't make money, but the massive improvements to land value near stations does and the train companies own that land.
They get to make money, society gets the personal and economic benefits of a functional public transit system.
Passenger trains on their own fundamentally do not make money for the operators in most cases, except perhaps specialty routes like airports: the value is distributed into society, but doesn't all come back as ticket prices. So any system where a train company is just a train company will either need heavy subsidy or will slowly wither away under "efficiency" drives.
What they do have is a huge pile of capital intensive resources that are juicy targets for vampiric extraction and captive markets that are slow to extract themselves when exploited (and slow to come back).
Which is also true for anything happening on roads.
Yes, it's true for roads, but no-one expects roads to all turn a profit in the way that rail lines have to. Even for place with road use fees for motorways, most people can access the road system for rather less than the cost to construct and maintain it.
Unprofitable roads don't get closed very often.
> The trains don't make money
This is untrue. From here: https://en.wikipedia.org/wiki/Farebox_recovery_ratio
... look at all the entries in Japan where ratio >= 100%. It is a lot. This one is bonkers to me (JR Central Rail: 245.95%), but easily explained by owning and operating one of the busiest bullet train routes in the world between Tokyo and Osaka.And, this does not include all of the (profitable) real estate projects these companies use to further increase ridership!
However, it may not include the real estate income, but it does include the income from extra ridership created by the real estate being near the station.