Until the Reagan years, there were very few homeless people. But there were a lot of people who were just warehoused in public housing for their whole lives. Most of them black. That didn't work.[1] The UK did something similar, "the dole", until the 1980s under Thatcher. That, too, produced a large non-working population.
We have a productive enough society to pay for welfare. But it generates a huge, useless, and troublesome underclass.
[1] http://ced.berkeley.edu/bpj/2013/06/the-robert-taylor-homes-...