It's not racism, it's just a sad fact and here's my experience.
For several years I worked as a Software Engineer at Xerox in the UK and we survived for 3 years after the global economic crisis hit in 2008. But management, always looking to save a few percent on the Engineering budget every year (despite always breaking even and returning to profit), finally cut it to below a level where they could continue to fund us as a cohesive unit, so they did a deal with HCL where we were all transferred to HCL who could do the work for the price (allegedly) and provide more engineers!
So HCL's plan was to take as many of us as possible off the Xerox work and to replace us with Indians, sending us newly-acquired, expensive staff to do contract work for better-paying customers (many miles from home for months at a time).
The HCL CEO sold the story that Westerner engineers are spoilt, lazy and ignorant, compared with intelligent, diligent and self-motivated Indians.
What HCL provided was very young, inexperienced and very poorly-paid Indians, perhaps straight out of university, to acquire knowledge, pick up work and to train off-shore teams of similarly-inexperienced staff.
Nothing was impossible. They were instructed to say "yes" to everything.
They were posted here for 3 months at a time, often expected to assimilated decades-worth of institutional knowledge in that time and to work all the hours god sends.
You see, they were brainwashed that everything is possible if you just try hard enough and that success is entirely down to the individual. Managers wielded metaphorical sticks, and let me tell you, they had the pointiest hair I've ever seen.
This is "empowerment."
If you don't succeed, it's because you didn't try hard enough. Not that projects were completely mismanaged...
So these poor young men and women, being paid a pittance and with no living expenses for being in a much more expensive foreign country, were apart from their families for several months at a time and living in tiny rooms, expected to work night and day, to do the work of entire teams of people who'd taken a decade or more to learn their craft and getting shouted at and lied to by their management.
That's the reality, so cut these poor guys a bit of slack. It's not their fault. It's the fault of The System.