Many social problems in west coast cities are self-inflicted but there's also the 9th circuit's Martin v. Boise decision (https://en.wikipedia.org/wiki/Martin_v._Boise); it prevents criminalizing public camping unless there's shelter space for everyone. This is effectively impossible given the number of homeless people so we're stuck with the encampments.