It is probably because San Francisco is regarded as one of the wealthiest cities in the country. The cost of living here is high because of the thriving tech industry within and in nearby areas such as Silicon Valley.