To put it simply, pathogens are like roach infestations. You can do everything in your power to keep your apartment clean and tidy and bug free, but if your neighbour’s apartment is a spawning ground for the little shits, sooner or later they’re going to make their way in no matter what you do.
It takes everyone, working together, to make us all safe from deadly diseases. That’s how herd immunity works.