Sometimes capitalism gets in the way of distributing goods and services. Usually when people try to decide what other people shouldn't and shouldn't do with things they sell to them.
I agree, but unlike the weird ownership issues that come with, say, copyrights and boxed software, this is a case where I quite literally still own something, and I'm letting someone use it for a fee. Laws put all kinds of restrictions on me, but some decisions on how my property is used still stay mine.
Let's be frank: landlording has never been socially productive. All the actual services provided by a landlord can be provided by a homeowners' association in a condo or cooperative building. It's really just a class division, an issue of bad public policy, and an issue of the balance of local housing markets between renting apartments, buying condos, and buying houses.