The common response to that then is then we should just raise the pay in an area until every job pays enough to afford to live there, or if not those jobs are clearly not important enough. The problem is that the number of these jobs is growing faster than housing stock. Market forces can't solve the problem of more jobs than homes unless you can build homes or destroy jobs. Take a look at https://bit.ly/36ySeFS - Santa Clara County added 300,000 jobs between 2010 and 2020 while building around 6,000 homes per year (5 jobs per home).
SF is the same story: total housing units in San Francisco increased by about 23,000 from 2010 to 2018 (https://commissions.sfplanning.org/cpcpackets/1996.0013CWP_2..., slide 6). Total employment in San Francisco during the same period grew by almost 300,000.
Seattle: total housing units in Seattle from 2010 to 2019 grew by about 59,000 homes (https://www.seattle.gov/opcd/population-and-demographics/abo...). Total employment (labor force) in Seattle during the same period grew by 243,000 (https://data.bls.gov/timeseries/LAUDV534264400000006?amp%253...)