The good programmers around the world command good salaries, whether out-sourced or not.
In the end it doesn't matter whether you're in India or the the US; there are just not that many great programmers around.
As to the rest, I'm baffled. How can you even think it doesn't matter where you are?
Different cultures value differently different jobs. For example, I know of places where programmers are not valued much and it doesn't matter how good you are, you'll not earn more than a corporate salesman.
Maybe it doesn't matter for the top 0.5% who end up going to work for Google or Facebook anyway. But there are lots of jobs for merely above average programmers, which are very well compensated in the US, but not at all well elsewhere.
If you can manage to produce quality work and convince people to hire you consistently (big if, I know) in the high paying market, you can leverage the existing programming population oferring wages a lot higher.
Getting value out of outsourced workers is a skill more rare than programming itself.
It has been associated with the lack of regular collaboration between the outsourcing resources and the customer. As a whole, this industry has not perfected the art of specification. An analysts with the ability to comprehensively specify software requirements is a scarcer resource than a programmer who can properly print a binary tree.
The lack of adherence to proper standards surrounding specification is generally compensated by ongoing collaboration between development teams and stake holders (hence the wide adoption of SCRUM). Separating the two entities with geographical, cultural and language barriers causes a break down in collaboration and that allows the deficiencies in specification to cause the project to fail.
I would argue that a bad team of coders with a water-tight set of requirements will have a greater chance of success than a team of rock stars with vague and incomplete requirements.
a) Tons of money to be made b) Tons of unmet demand
Why the outsourcing market isn't growing as much as it should? There are plenty of places with more than capable programmers which are usually paid in peanuts not only when compared with SV, but when compared to people in the same country.
That smells like a niche waiting to be disrupted. He who solves the trust and quality perception and control issues, will become very rich.