In Europe, there are so many safety nets that nobody should end up homeless. Some still do, but it's really a tiny minority compared to US.
This is also one of the most surprising things I saw, the first time I went to the US: so many homeless people, everywhere. Even in small towns.