No company wants to hire in expensive areas, but that's just where engineering talent is concentrated.
I live in flyover country, and there are no shortage of talented people here, but I wouldn't dispute that the per-capita software developer talent in SF is going to be higher.