SF is small and its downtown has an oversized impact on its financials. There couple of relatively large areas with older residential buildings that pay fairly low property tax and have mostly small businesses. Business related revenue from relatively small area is what allows San Francisco its breathing space in the budget.