This simply isn't true. I provided the capital and took on the risk. When the dishwasher broke, I paid to fix it. When the roof leaked, I handled the repairs.
I didn't get paid extra in the sale as I lost money, not only on the property, but the improvement I paid for. I didn't increase my wealth, I lost money.
You are making these assumptions and they aren't true. It cost me time (renting, repairing, collecting), money (depreciation, loss on interest, opportunity cost of funds), and I took nothing from society. Rather, I provided a shelter for people to live in and rent. Some would say that this is beneficial to society.
Please consider the facts before responding further. Many landlords improve properties, pay for property management companies, and also pay insurance/maintenance/taxes on their properties. This benefits society by providing jobs and improving neighborhoods.
I'm not sure why the landlord is getting blamed here. It's one thing if you are referring to multinational corporations buying up real estate to make a nation of renters. But, it's not fair to say that all landlords are mooching off of society and not providing value.