The citizens of San Francisco have basically given the landlords a monopoly but not approving higher density zoning.
Only 43% of SF residents are homeowners, and many fewer are landlords, yet it is very rare for rezoning or higher density legislation to get passed. There are plenty of developers that want to develop in SF and create some competition for the existing landlords, forcing everyone to offer better services. Instead, we get laws like statewide rent control which reduce the potential long term value of new development, further reducing both supply and competition.
Companies capture external value all the time, that isn't the core problem. Improved infrastructure and more wealth in a city would normally attract more competition reducing the total amount of that value that each landlord could capture.