Its not so much libertarian thinking as its greed allowing it to happen.
Greed (unfettered) allows the level of financial inequality that creates a system where this is even a thing (there have always been tiny amounts of people that simply couldn’t deal and this became the only choice other than true homelessness)..…