Everyone does have the right to live in SF. Anyone is free to earn the money required to afford a place here.
The people who earn 100k+ didn't win some sort of lottery... they choose to work in industries that pay well. They get up everyday and go to work like everyone else. Yes, some people are born into families with better support than others - but everyone has the opportunity to go to college and study STEM. Any student with decent grades and lack of capital qualifies for financial aid and scholarships.