Landlords contribute plenty to society: they provide optionality. Without landlords, folks would be forced to pay or borrow hundreds of thousands of dollars ahead of time to build or purchase homes[0]; they would be forced to incur more severe transaction costs (having to sell) when moving; they would be forced to find the funds to handle maintenance issues; they would be forced to have a significant portion of their net worth tied up in housing. A tenant avoids all of that: he only has to make a relatively small deposit; he can leave relatively quickly and easily; he can rely on someone else to handle maintenance; he doesn’t care if housing prices decrease. Those benefits are not free, of course: they cost money, because they have value.
Indeed, given how many people flat-out couldn’t afford to buy in a world without landlords, landlords prevent homelessness. Just like farmers, distributors and grocers prevent starvation.