I checked the first link, it’s about the common cold. They test groups with and without masks and in both groups there was one person getting ill. Conclusion: the sample size is far too small to reach any conclusion.
Also checked the second link, it says:
There is some evidence to support the wearing of masks or respirators during illness to protect others, and public health emphasis on mask wearing during illness may help to reduce influenza virus transmission.
Not very convincingly concludes the opposite of the claim.
Covid is spread mainly by respiratory droplets, masks act to catch those droplets at source, it's simple logic.
Whilst only a properly fitted P3/N99 mask gives absolute protection from infection via inhalation, community mask use is an important pandemic control measure to keep the reproduction rate 'r0' to a minimum.
That the advice from WHO and some governments has been muddled, illogical and inconsistent does not detract from the truth.
https://pubmed.ncbi.nlm.nih.gov/19216002/
http://tiny.cc/krfhpz
http://tiny.cc/5sfhpz
https://onlinelibrary.wiley.com/doi/epdf/10.1111/jebm.12381
https://www.cmaj.ca/content/188/8/567
https://academic.oup.com/cid/article/65/11/1934/4068747
https://jamanetwork.com/journals/jama/fullarticle/2749214