SF is expensive and horrible. The only reason people in tech live there is because of employers in the area and it beats living elsewhere in the Bay Area which is expensive and dull.
There's really no other reason people would put up with an hour (or more) commute each way every day.