You are confusing low cost with low competence. Some developers in India and Brazil cost a fourth of an American one but may be just as competent. Yes, the average is lower because of the lower barrier to entry and differences in cultural practices, but you really should separate cost and competency. You can hire some grifter who is quite expensive compared to a super developer from India just because they live in California.