All of this. Also, homelessness is closely tied with the prison institutions which are closely tied with the cartel drug trade so this plays a part I imagine. A great place to recruit people for the drug trade.
Idk, I just think it's more than "a failure of the state" but I do advocate for bringing back institutions.