You comment isn't wrong. I've observed the same thing but only when things get outsourced to low cost consulting shops. If Google pays decently in India (which I think they do), they'll get much better devs. There's a pretty strong start-up ecosystem and dev culture but as with everything you need to pay good $$ - as in not 10% of bay area pay but closer to 60-70% of it to attract top talent.
... have already left the country.
It's a joke, but not really.
1. The forces that dictate the lowest price.
2. The forces that dictate the highest price.
These are completely orthogonal to each other.
Lowest price is based on cost of living, you can hire the cheapest person as long as you pay them enough for them to keep on eating. That's it. Notably this lower-end is going to have a lot of variance based on location.
Highest price is based on how much value a worker creates for a business, the highest price that you can pay that worker is somewhere that leaves the business with a margin profit. Of course it is in the businesses best interest to increase the margin for themselves, but as talent becomes harder to find, fat margins become less of a necessity and more of a nice-to-have. The job needs to get done or their golden-egg machine will die.
So!
You go to the lowest price at a another country, that's what you get in quality. Execs think that people are replaceable so they believe that the average X is the same here as it is anywhere else, the only difference to them is cost.
So yeah. You are not racist for pointing out that quality suffers due to cost cutting through offshoring. The lower cost-of-living countries (such as India) still have top tier talent, but that talent is priced similarly across the world, they are smart and they price themselves according to the value they bring.
Of course your assessment of those who can literally steal your job from under you is fair and unbiased