Except in this case everyone had the flu and the only one being kept away was the one who realised they had the flu and honest enough to tell everyone.
If it was a blanket ban like Israel, I would understand. But governments placing restrictions on just Southern African countries is just performative and intended to show their populations that they are doing something.