I used to live near this store. It was not a pleasant experience to shop there unless you enjoy watching drug addicts threaten security for stopping them for stealing or having them cut in line in front of you.
And I’m not talking about homelessness in general. New York has plenty but at least it’s somewhat under control. No companies are leaving or putting these sorts of barriers in place because of it.
That already happened in SF, although it took far too long. So far, things haven't improved much or, alternatively, have gotten even worse. It depends on who you ask and where they happen to stand on highly-politicized SF city governance issues.
That politicization is really the root cause of all this - and it goes back decades. Long enough to undermine or weaken so many underlying structural fundamentals it may not even be possible to fix anytime soon. Realizing this, I got out quite a while ago.