The US is is literally getting "good" immigrants from those countries. You are not getting the poor unmotivated individuals.
These motivated individuals will pass on those characteristics and their wealth to their kids.
The current African American's ancestors had no such filtering process, combine that with systematic racism and poverty its not too hard to imagine why they fall behind.