Housing the homeless is cheaper than them using the ER

https://www.bloomberg.com/news/features/2019-11-05/unitedhealth-s-myconnections-houses-the-homeless-through-medicaid

No surprise that housing the homeless costs less than having them use the emergency room for all of their medical care.