Wonderful cherry pick of data (a favorite pseudo-scientist approach). Below is a link from within the link you proposed:
Most importantly, note from the reported results it this study:
Results: Between September 23, 2008, and December 8, 2008, 478 nurses were assessed for eligibility and 446 nurses were enrolled and randomly assigned the intervention; 225 were allocated to receive surgical masks and 221 to N95 respirators. Influenza infection occurred in 50 nurses (23.6%) in the surgical mask group and in 48 (22.9%) in the N95 respirator group
Let me say that a different way to eliminate any confusion. 23.6% of the nurses who wore surgical masks got infected with influenza anyway, while ONLY 22.9% of those who wore N95 masks got infected.
Neither mask protected from influenza virus. Follow the link and see for yourself.
https://pubmed.ncbi.nlm.nih.gov/19797474/
Objective: To compare the surgical mask with the N95 respirator in protecting health care workers against influenza.
Design, setting, and participants: Noninferiority randomized controlled trial of 446 nurses in emergency departments, medical units, and pediatric units in 8 tertiary care Ontario hospitals.
Intervention: Assignment to either a fit-tested N95 respirator or a surgical mask when providing care to patients with febrile respiratory illness during the 2008-2009 influenza season.
Main outcome measures: The primary outcome was laboratory-confirmed influenza measured by polymerase chain reaction or a 4-fold rise in hemagglutinin titers. Effectiveness of the surgical mask was assessed as noninferiority of the surgical mask compared with the N95 respirator. The criterion for noninferiority was met if the lower limit of the 95% confidence interval (CI) for the reduction in incidence (N95 respirator minus surgical group) was greater than -9%.
Results: Between September 23, 2008, and December 8, 2008, 478 nurses were assessed for eligibility and 446 nurses were enrolled and randomly assigned the intervention; 225 were allocated to receive surgical masks and 221 to N95 respirators. Influenza infection occurred in 50 nurses (23.6%) in the surgical mask group and in 48 (22.9%) in the N95 respirator group (absolute risk difference, -0.73%; 95% CI, -8.8% to 7.3%; P = .86), the lower confidence limit being inside the noninferiority limit of -9%.
Conclusion: Among nurses in Ontario tertiary care hospitals, use of a surgical mask compared with an N95 respirator resulted in noninferior rates of laboratory-confirmed influenza.
Those are practically the same percentages. Are you suggesting either type of mask doesn't work because people got infected anyway? This is a study comparing two types of masks, not masks versus no masks.
Furthermore the study only considers masks for uninfected people, not infected people. Masks worn in public are for both.