Landlords aren’t “producing” rental stock. You could argue that developers are, but new owners of older rental properties? They didn’t build that. And they wouldn’t have bought it if they didn’t think they could make a profit leeching off the tenants who couldn’t afford to buy a house of their own.
Here’s an exercise: Compare someone who does not have the benefit of your expertise in machine learning to someone who is SLEEPING ON THE FUCKING STREET.
Housing is not a commodity, it’s a human right. The market fails at housing for many of the same reasons it fails at healthcare. Stop worshipping the goddamned market, it’s a human construct, not some absolute philosophical truth.