No one said masks were 100% effective.
But prophylactic measures aren't either/or. A combination of precautionary measures will unsurprisingly work best. Masks, keeping a good distance from others, avoiding crowds, avoiding people without masks, staying home more, washing hands, etc.