In order not to inhale other people's bacteria and viruses and not breathe out our microbes on other people, we use medical masks. If we talk about protection from bacteria, then the effectiveness of the mask can even be increased if it is saturated with an antibiotic. But you will need a lot of antibiotic, besides, bacteria can develop resistance to it.