The market has also drove San Francisco based startup valuations to ridiculously high levels - you have to take the bad with the good.
All else being equal, a Silicon Valley/San Francisco based startup is able to achieve a much higher valuation than an equivalent startup outside San Francisco. However, this Silicon Valley/San Francisco based startup has to deal with higher real estate and salary costs.