That’s true, but I also know people who are struggling who make it by sharing spaces. The prices in SF are high, but honestly not that different from the rest of the bay area.
Plus the notorious existence of unhoused people in SF. I wonder if the unhoused people are included in this data.
SF is also just one of the most walkable cities in the US, and has two huge parks inside the city as well as many smaller ones.