Homelesness is a social disease; a disease of a society.
Any society can provide all people within it with a home.
Most societies are able to build homes that last hundreds of years.
Some societies are able to build long lasting homes with all hygiene confort.