The problem is that for a normal country, coding isn't such an attractive career in general. It makes about the same money as every other engineering field (and less than many, like architectural engineering) requiring similar qualifications, and in many ways more exhaustive/painful, so only reason why you may want to be a coder in say UK is to love coding, then your hobby becomes your job. Hiring a British developer, you may be more or less certain you aren't working with a cynical milkman.
In poor countries, coding is usually the only way out of extreme poverty, unless you are born into right family. What other good careers are available in India that beat freelance coding at average ($30/h) rates? So, it attracts people who are simply after money and nothing else, they practice squeezing their clients dry and doing all kinds of tricks more than they practice coding. Because they give no shit about coding.