Many homeless reject shelters because they would have to give up much of their personal possessions, can't have a pet, live under tight restrictions, and deal with theft from other homeless people in the shelter.
Giving people small, secure apartments would solve many of these issues along with many emergency hospital visits and many other issues.