Even the big companies do this. My employer is a FANG and I'm based in London. Rents are nearly as expensive as in San Francisco... But if I moved to Silicon Valley, I'd get 40% more base pay for the same work.
The only justification for this policy is something called "cost of labor" — in other words: "We've agreed with other tech companies that nobody's going to raise salaries locally."