It is political choices, but it's not primarily on a city level, or a year-to-year level. The problems in San Francisco are generations in the making and often national in cause. You might read Loewen's "Sundown Towns" for a good look at a key factor to understanding American cities.
The "mentality" here is one appropriate for the person and the circumstance. As you say, his neighbors weren't aliens, they were people. Compassion and understanding were worthwhile efforts. And they remain so.
I did not say this mentality is not appropriate for one person. And I didn't say that compassion is not a worthwhile effort, so I am not sure what you are responding to.
The "mentality" here is one appropriate for the person and the circumstance. As you say, his neighbors weren't aliens, they were people. Compassion and understanding were worthwhile efforts. And they remain so.