It has nothing to do with race, but rather getting what you pay for. India has produced many bright, capable technicians and engineers, and the good ones can ask for more money.
The cost of living in India is lower, but only for basic stuff. Once you move to having a higher-end standard of living, you start spending closer to the same amount of money that you would in the west. A nice car isn't any cheaper in India. A Playstation 5 isn't any cheaper in India. A nice house in a secure neighborhood is cheaper, but not by orders of magnitude.
Consequently a lot of the high-end engineers and technicians in India move to the west for the better overall standard of living, and the ability to interact directly with their coworkers, even if their money would go a little further in India. Brain drain is a thing.
But even the ones who stay still pull salaries in the same ballpark as people in the west. You only have to undercut the competition by a little.
The dirt-cheap employees in India are NOT high-quality. They're just greater in number, and are cheap because at the bottom-end, the cost of living is far cheaper in India. It's cheaper to train someone in India to do a mediocre job at $2/hr (7 times the minimum wage in India) than to train someone in the US to do the same job at whatever the minimum wage is in a given state in the US. Even if you don't need to train the US employee, it's still a huge loss paying them $15/hr.
But the quality engineers and technicians in India are not making a mere $2/hr, or even $15/hr. They cost almost as much as they do in the west.