No mitigation effort is perfect. Not even vaccines work perfectly.
The point is to reduce the average number of people that each infected person spreads the disease to. Not to get it to 0, which is impossible.