As the original commenter, I live in Toronto, Canada. It's pretty simple: homes are too expensive. One bedroom in an illegal sublet of an eighth of a house can be C$1000+/month. Why would anyone pay money to live in a de facto homeless shelter when one can be homeless for free?
If we want to fix this, we need to build more supply. The system we have now has too much regulation and permitting designed to block development, so the only stuff that gets built is single family luxury housing or extremely large multifamily apartment complexes.