Wow, some rampant generalization in this thread. What most people outside of India seem to fail to understand is that most of the experience they have had and stories they've heard of are based off of poorly paid, not very highly skilled engineers employed at body shop consultancies.
There is also another class of software engineers in India who are as good as SV engineers who work at companies like Ola, Bookmyshow, PayTM, Flipkart etc. building quality products at quite a large scale. This is the kind of engineer who is also hired by FAANG/Microsoft/Uber etc. And these engineers are paid very well in comparison to the body shop guys.
So when Uber says they might shift engineering to India, that doesn't automatically mean quality is going to shit.