It's been said much of American culture arises from the self selection of those choosing to leave home and come here over the last few hundred years.
Similarly, the choice of geography and company of employment by developers tells you a lot. If you can't choose the individuals, choose the organization all the more carefully as its employees will have made a choice too.
While there is some truth to it, it's important to keep in mind that there are quite a few exceptions to it. Many people have returned from US for various reasons. Many simply didn't go to US because of visa hassles or personal reasons.
As an example, I refused an H1B assignment for a boring Enterprise SW job in Arizona that would have paid 4500$/mo, instead opting for a career with local startups which has worked our rather well, both professionally and personally. (A job with a startup in US sounds definitely better to me than one in India. Few are willing to sponsor H1B though.)
What I mean is that career options in USA are not universally attractive. Some jobs in India are much better than some jobs in US.
IMHO, and I'm certainly no expert, but it seems that in india more people see IT work as a path to middle class wealth and this consequently attracts more people to the field, in the same way that people become doctors who have no interest in medicine, and people become lawyers without an underlying interest in law.
There are certainly good doctors and lawyers who aren't 'passionate' about their profession, but for the most part, interest is the path to competence, and so as more people enter the field for financial and social reasons, you end up with a overall lower quality of candidate.