The reason the Tokyo transit system is so good is that the government built all the infrastructure up until the 80s, then private companies came in and reaped the profits. It's a product of planning, and of government infrastructure and spending, not of private competition.
In fact, JR these days makes money by buying up real estate, building a station, and seeing land value skyrocket.