Mask wearing is literally the same type of thing as refrigerators, sunscreen, bug spray, spaying your pets, cancer screening, seatbelts.
NONE of those things work perfectly all the time. But ALL of them help reduce harms some of the time.
Harm reduction is the goal.