Most of the homeless in California are mentally ill, and (as a direct result) refusing medical treatment.
We used to forcibly put them in psychiatric wards, and many responded well to antipsychotics, etc.
That was deemed inhumane, so now we make them sleep on the streets, where they get assaulted, robbed and worse.