That said, surely renting a property that is unaffordable to own by the renter provides social utility though?
Property owners do occasionally have their property seized by the community that it may be used more appropriately to the community's desires. It may be by eminent domain, or civil forfeiture, or adverse possession, or by regulatory taking, or some other means, but it is more likely to happen to those that do not actively demonstrate value to their community (perhaps in the form of financially supporting the local lawyering economy, if nothing else) than those who do not.
It's a fact of existence from the Pauli Exclusion Principle all the way up to "wherever you go, there you are" that everything has to have a place to be. You can't have a general welfare without a place to put it, and wherever you put it has to be adjacent to other places.
So that special obligation is basically to not abuse the inevitability of adjacency and the tyranny of distance in a way that is too obviously selfish.
Eminent domain is one establishment-sanctioned way in the US, wherein the owner is forced to sell to the government. The purpose is supposedly to enable construction of public infrastructure such that private owners cannot obstruct for personal profit, but the controversial Kelo v. New London case involved the use of eminent domain to transfer property from one private party to another.
If your style of ownership is a clear burden on the surrounding community, they will eventually strip you of your property. But the bar is set rather low, even for the minorities in a racist community. As long as you pay your property taxes, obey the most literal interpretation of the law, and don't allow the property to look too bad from the curb, people will generally leave you alone.
So the duty of the landlord is to not be such an enormous ass that the community notices it, and comes after them. It isn't difficult, let some people can't even manage that.
Do you think the landlord should provide apartments for free?
Returning to Churchill's statement: Every one of those improvements improves every landowner, whether a landlord or a homeowner. For every one of them, they have done nothing - except pay taxes. (But note that the landlords pay taxes too.) So why single out the landlords?
The investor capitalized the builder, and the builder constructed the housing, and the lender capitalized the landlord, and the landlord bought the building, all because they knew that people need to have a place to exist, and that the spot they picked was a likely spot.
If renting were somehow not allowed, none of them would have any use for that spot. There would not be that same building there, but there is the possibility that there would be a 12 bed + 1 outhouse shanty/bunkhouse there instead, which would also be better than sleeping in your car, but only just barely. And the cost of your kip would be much less.
There is also the possibility that instead of just one 3200 sq.ft. house with grass-covered yard, there would be a low-rise tenement-style condo-plex with 8 units at 1600 sq.ft. each, with limited covered parking and no lawn. With enough of those on the same street, there might also be a bus stop nearby, and competition among local utilities.
But by defining that plot as one place for one family to live, the landlord and his financiers has ensured that no matter how big it is, it is too expensive for the renter to easily buy it. If the landlord did not exist, that plot would have to be divided into as many places as is necessary to bring the price down to what those who will be occupying those places can afford to pay each other to stay out of someone else's spot.
Your own comment points out that in SF, the median landlord makes roughly what the median software developer makes. But a software developer in the Bay Area is one of the most productive workers on the planet, with a literally unparalleled opportunity to generate value, both for the company he works for, and for global society/consumers in general. In contrast, the landlord does not produce anything.