San Francisco in 2019 arguably has more wealth concentrated within it than any place at any other time in history. Making poor and mentally ill people sleep on the street is a choice you have made as a society. Places with far, far fewer resources have somehow managed to sort this problem out.
Have you actually been to SF? Nobody makes these people do anything. In any sane polis, you'd institutionalize the ones that require it, and run the rest off. SF's leaders pride themselves on adopting the opposite approach.
[1]: https://aeon.co/essays/best-way-to-solve-homelessness-give-p...
[2]: https://www.bbc.com/news/world-us-canada-36092852 (includes specifics on San Francisco)
[3]: https://www.newyorker.com/magazine/2014/09/22/home-free