Surgical masks don't stop you from getting Covid. That was never what they were for: they were to reduce the viral load you exposed others to, between when you got infected and when you noticed that you were infected. See https://en.wikipedia.org/wiki/Surgical_mask#Function.
Some cloth masks can (when dry) also trap small particulates through electrostatic interactions, although they are less effective as a mechanical filter than surgical masks; and many washing methods destroy this effect.
Right, but that still makes the people who refused to wear one selfish assholes.