the problem is incentives.
Japan is often claimed to have the best trains and subways in the world. They are privately run for profit and the train companies own real estate and business around their stations so it gives them a positive feedback loop. more riders = more patrons for their other businesses.
conversely a public system someone is always trying to cut the budget as it's just an expense from the pov of most governments