I think it's far more involved than just "dealing with the homeless". After I moved to the UK a few years ago (from NL) was shocked by the amount of homeless people.
After renting for two years I was evicted with a 2-month notice for what was essentially a simple disagreement with the landlord. They didn't even attempt to resolve it: they just evicted me.
It took me over half a year to get half of my £1 100 deposit back; they initially tried to charge me £1 400, mostly for bullshit general maintenance and/or lying about either the initial state – even though it was unambiguously stated in the original inventory – or agreements we had made about the checkout condition (I asked if I had to fix a few minor issues, they said no, and then charged me anyway). About £100 was reasonable, the rest wasn't.
My point here is, all of this would be highly illegal in the Netherlands. You can't just evict people because you feel like it, and you can't just send a bill well over a month later for all sorts of items (or maybe you can, but it's certainly not common[1]). It's not hard to imagine how I could have ended up homeless if I had been more vulnerable – for example by actually needing that £1 100 deposit for a new deposit, or suffering from depression or other mental illness, etc.
I think homelessness is a complex problem, and dealing with people after they become homeless is a only a part of it. This is not very scientific, but in general, I've observed that homelessness is correlated with the amount of empathy in a society, which is something that affects many laws and attitudes.
[1]: A little footnote: technically also not legal in the UK, but they interpret "notify about deductions within 10 days" as "send standard form letter that there may be some deductions within 10 days", which is obviously not the same. But ... what can you do about stuff like this as a tenant, right? I might have considered the small claims court, but have since left the UK as I was fed up. Even "notify within 10 days" is already very strange, as this means they have all the time to collect all the evidence, while robbing me the chance of actually giving any sort of counter-argument. In NL, it's always been arranged at the checkout, with both parties present.