Because high rents cancel out the benefits of a high salary. It's simple arithmetic. Why give up 30k of a 100k salary to work and live in SF, when I could give up 10k of an 90k salary in Austin instead? (These are just illustrative figures.) And the high price of housing means that even tech workers who want families can't afford the space to raise them.