That only makes sense if there is a positive externality from housing. Is there?
Why shouldn't housing, like any other goods, be as cheap as possible for as high quality as possible?
Of course, many.
To be sure, are you asking if society does better when its people are homed vs. homeless? Because that seems like a question with an obviously-yes answer.
Yeah, there's no positive benefit to making sure people have housing. That's why every day when I walk home from work, I have to think really hard about if I'm going to go home today, or just hang out under the overpass and panhandle.