San Francisco is both a city and a county, unlike San Jose. In addition, you can't directly compare municipal budgets without taking into account enterprise departments that are meant to be revenue neutral, such as airports - in this case, both have an airport.