Yes, of course, a landlord does managerial work that should be compensated. But ownership of the building is not necessary for the ability to do that managerial work, nor is doing that work required for the legal entitlement of the collection of rent.
The landlord isn't even usually the person who built the building or repairs the fences.