You don’t have to house the people in very desireable locations. If becoming homeless means that you instead get relegated to a massive concrete block, most productive members of society would do their hardest to leave as soon as possible. Those that don’t (for a variety of reasons) are at least off the streets.