They're clearly flush with cash: The budget has grown by leaps and bounds despite a static population.
I do realize that San Francisco imports the homeless problem from much of the rest of the country (nice weather, good people...if you're homeless it certainly seems better than NYC), and that has to have costs, but it seems like a city that should have gold-plated services.