That’s a cute meme, but not true at all. Canada spends a lot of money on health care for the homeless. In fact, the current system of NOT spending enough on basic shelter and mental health & addiction supports means that we spend far more than we should on emergency care and downstream health-related consequences.
There is widespread agreement among those who work in social services that some form of supervised, humane institutional living is needed if we are going to solve the homelessness problem. There is hesitation to implement that because it is extremely expensive and politically fraught.
More importantly, if we are being honest, housing people in decent conditions for free would create a huge amount of competition with private sector landlords, retirement homes, long-term care homes, etc. Unfortunately, the “system” implicitly uses the threat of homelessness or squalid accommodations as a major lever to motivate people to work at jobs that are not very stimulating. Mind you, human nature being what it is, I think the same would ultimately be true under any economic system or form of government.
At least until our robotic AI overlords invent an unlimited energy source and take over the tedious work so we can all sit around doing whatever pleases us, lol.