That's the nuance missing from the parent's snark, masks are most effective at preventing the wearer from transmitting infections to the people around them (especially important in an operating theater). Masks may also help prevent the wearer from inhaling airborne pathogens, though they're less effective there.