The US has been pretty transparent on that, that the goal is not to prevent it from coming here (that's impossible), but to slow its spread here to give scientists more time to evaluate its impact.
Math? Any particular transmission event is chance of someone being infected X probability of transmission. Reduce the first term and the total number of infected individuals at a given time T is reduced (until any exponential growth swamps the terms).
Point of saying "it's impossible to prevent" is that it's not possible to reduce the first term to 0.
The reasons are irrelevant - South Africa still ends up effectively "punished", and encourages reduced transparency, and delayed announcement. Personally, I don't care, but the mechanism is clear.
"Trump further diminished the U.S. in the eyes of the world by expanding his travel ban. This new “African Ban,” is designed to make it harder for black and brown people to immigrate to the United States. It’s a disgrace, and we cannot let him succeed." - Biden