Landlords may provide services, but they primarily extract economic rent, essentially profiting from their their monopoly on that particular piece of land.
How can they profit from the unproduced value of the land when they had to buy it? It seems to me that you're assuming landlords owned the land since before high property values in SF or wherever were a thing. It seems unlikely this situation accounts for much of the real estate.