Extend this logic to remote work and your salary should scale strictly with where you're living. Living in Ohio but working for a bay area startup? Expect to get paid a "good salary locally". Why not, right?
That is the case in the vast majority of tech companies, though. They (almost) all have something like a "regional adjustment", "location based" or other classification for salaries in different areas. Some are more extreme than others. The company I work for (it's a relatively well-known tech company) certainly has it, and I know Google and other FAANGs do, too.
Point is that when you interview in SF and then leverage remote work to go wherever you want they cannot police where you are and determine the appropriate salary.
OpenAI went shopping for Kenyan labor and those who did the job were not American and never interviewed in SF