This is not true at all. Good landlords also take care of the property, providing what is functionally a "home as a service" with none of the hassle of maintaining it.
There are bad landlords. Most rentals are owned by them. There are precious few that are not.