It seems as if the economic systems adopted by various countries have relationships with homelessness levels. This is to say that the levels of homelessness tend to be higher in countries where certain systems are adopted, and lower in countries where certain other economic systems are adopted.
In places where capitalism is applied in its pure form, we tend to see a lot of homelessness. But then, this is not necessarily to say that capitalism is a bad thing, though even its strongest proponents tend to agree that it can be heartless. The tricky thing about capitalism is that wherever it is implemented, the people who are bound to prosper tend to prosper very much, whilst the people who are meant to do badly do very badly indeed: leading to things like homelessness. In a capitalistic society, the employers may give their employees certain forms of house allowance to keep them from becoming homeless. But this then means that the employees in question end up becoming homelessness as soon as they lose their jobs, and with them, their house allowances.
In places where there is socialism, we tend to see lower levels of homelessness or, indeed, no homelessness. This is not to say that socialism is necessarily a better system: it is just more effective at dealing with this particular problem.