Don't forget that if you earn less money in the same country then you'll pay proportionally less taxes. Made up numbers: CA = 120k gross -> 80k after tax. Another state: 100k gross ->70k after tax; Difference in cost of living: 10k). Now you are breaking even. Of course, totally made up numbers.
And as an extra, for every extra dollar you have in a cheaper state, you can do more with it than in CA.
Sure, I would love to make the same kind of money in the cheapest corner in the world but companies aren't there to make us rich; they are there to have a business! If you want to try to convince company to pay for what you produce instead of paying a fair salary, try contracting instead (and be good at selling yourself)