Broadly speaking, homelessness is a symptom as much as a problem in and of itself. This govt have pulled so much funding out of welfare, social housing, mental health support, addiction support etc. that seeing people on the streets is the tip of a societal iceberg.
When I can back to the UK recently I was shocked by the homelessness. There's no reason people shouldn't have some where to sleep safely.