The Swiss public transport system is a century-plus old at this point. Compare pictures of the Zurich tram system in the early 20th century with today - squint your eyes and you won't notice any difference.
That said, I'm willing to bet that San Fransisco and the surrounding communities had comparable public transportation in the 19th and early 20th century. While I can't speak for the bay area, you can still find exposed tram tracks in many US cities - Philadelphia, for instance.
The US's move from having the best to arguably the worst public transportation system in the world among developed countries is a lesson in disastrous government policy.