It's a simple matter of math. The USA has less than 5% of the world's population. It's statistically impossible for that 5% to be the smartest 5% in the world. Therefore, if we want the smartest people in the world, we have to allow immigrants.
But... the US also has not the best education, so.
and nutrition, pollution, infectious diseases, etc