From an article about masks and why everyone is encouraged to wear one:
Masks can be worn to protect the wearer from getting infected or masks can be worn to protect others from being infected by the wearer. Protecting the wearer is difficult: It requires medical-grade respirator masks, a proper fit, and careful putting on and taking off. But masks can also be worn to prevent transmission to others, and this is their most important use for society. If we lower the likelihood of one person’s infecting another, the impact is exponential, so even a small reduction in those odds results in a huge decrease in deaths. Luckily, blocking transmission outward at the source is much easier. It can be accomplished with something as simple as a cloth mask.