California is as socialist as many European countries. It has _extensive_ social services along the lines of what you describe.
These make the problem worse, rather than better, by enabling.
Junkies get a free apartment from the city, free food, free healthcare, free clothes... and now have unlimited free time to go scam cash for a fix.
Free taxpayer-funded rehab? Exists, but almost none take it. That would reduce their drugs time. Forcing treatment would be cruel and oppressive, according to the left. So the cycle continues.