Africans coming to America

If the USA is so terrible for African-Americans why are actual Africans flying to Central America and crossing illegally into the USA?