That's what MUNI is. It started as hundreds of independent railways crisscrossing the city. They slowly unified them into the cacophony that is MUNI.
I say cacophony because there are bus', cable cars, vintage light rail, modern light rail, subway, tram, local neighborhood shuttles, and I'm sure I'm missing a few.