Both boil down to supply, demand, and cost. Every single software job has an American qualified to do it, for the right price. the same is true for other fields.