Cost of living is higher if you live in a major metropolitan area. That higher SF salary gets you the same amount of goods and services as a lower salary in Utah. This is a pretty basic concept.
If you want to get paid the big salary, move to the big city. Don't complain about higher rent and cost of food. Or live frugally.
But there is value in living in those higher CoL areas (hence them being higher CoL) that you sacrifice living in a lower CoL area. You sacrifice on space to live in SF, but you get all the other benefits which is why people do it. If I sacrifice the SF benefits, why do I then also have to sacrifice my CoL/pay ratio without any additional gain?