That’s an oversimplification and relies on the word “homeless” as an explanation and solution.
If the condition was called, “street living”, perhaps you would consider solutions that don’t solely address the lack of permanent dwelling, and instead look at why some people choose to live on the street.
Of course there are people whose problem is fundamentally lack of a home, in which case providing a home is the solution.