Not true. The Corporation of the City of London put up most of the money with the goal of alleviating congestion. The chief visionary, charles Pierson, was the solicitor (a sort of lawyer) for the City.
http://www.historytoday.com/richard-cavendish/first-day-lond...
http://en.wikipedia.org/wiki/Metropolitan_Railway#Establishm...
Same deal with new York's subway - therre were private companies involved but they were set up within the frameworks of a public works project and were basically financial vehicles designed to limit financial liability and attract some matching capital from the private sector for an initial large public sector investment or monopoly grant.
I'm sympathetic to libertarianism but this notion that all this stuff would happen by itself if it weren't for evil government interference is just bollocks, it's just as stupid as communists claiming that all private capital is wicked.