It's a combination of it being too expensive to hire police officers with the cost of living here, part of the citizenry thinking that "equity" and disincentivizing police from doing their jobs properly = good, and the divide between rich and poor insulating some people from seeing what their decisions cause.
I was not surprised at all at the stabbing / murder on Bart last week. In my travels in Bay Area, I have not seen 1 officer on a Bart train in my entire 10 years here. Even on Caltrain, the conductors have no authority to do anything.
It's like we actively try not to enforce laws here.