A lot of my silicon valley peers and I opted to live in the SF area and commute south for work because we found SF & Oakland far more entertaining on nights and weekends.
As more and more tech jobs became available in SF itself, we started taking them.