Yes, well who is selling what? Revenue goes to the government, who also fund the services in the first place. There are private companies there in the middle but the railway as a whole is not a business, it is an (overly) complex mix of entities. Buying a ticket isn't the same as buying a product which then lets the company make more products; ticket revenue doesn't fund services - it just goes to government and then they decide on top of that what services need to run. So what the railway can or can't do is directly dependent on what the government sees fit to fund.
Railways are a key part of public transport infrastructure. Most other countries have no problem treating them as such and funding them accordingly, but here we seem obsessed with everything having to "make money". Except that if you used the same criteria they'd all be left to fall apart because maintaining them doesn't directly gain revenue. Same goes for railways yet we get all the government lines about profits and such.
You don't call a public park a business, and demand that admission fees are such that the park can make a profit otherwise it has to close. You don't say parks have to adapt and change with the times if they start looking badly maintained and struggling to stay open - you spend the money needed to make them work, because they're a public good. What you're saying is not that much different to if I said that roads should be closed if they can't adapt to changing weather conditions, because some of them got flooded and people had to be airlifted out. Roads aren't a business, they're funded by the government. So are railways.
Anyway this is all off topic