It simply isn't true that $120k/year is the average programmer's salary in SF. That's near the high end of programmer salaries, especially if you're young (programmers in their 20s rarely get >$90k).
There are plenty of programmers right out of college making low six figures. Of course, there are plenty of programmers in SF and SV; these are just the good ones.