They need it to be in America due to the current political climate here. Many politicians are looking at Amazon with an unfriendly eye. Investing Billions in the US and hiring tens of thousands helps remove that pressure. Doing all of that in a foreign country would be political suicide for them right now.