I do not think that the current crime situation in San Francisco appeared by some fluke or an accident. Specific policies were put in place by the progressive government officials and progressive people in San Francisco voted for these policies. I think is a cautionary tale for the rest of the country on what happens when progressive utopia gets voted in.
I actually don't know if the crime rate in SF is higher than elsewhere, but if it is I think cause is the opposite. It's what happens when capitalism goes unchecked. Cost of living is on the rise while wages are stagnant. Crimes are often committed by people who are desperate. Also there are no facilities for people who are mentally ill, who will go on to commit crimes.
NIMBYism, cronyism, inability to build, tons of regulatory red tape to do anything, high taxes, etc. is not capitalism.