Medical masks are the ones used by healthcare professionals, such as FFP2 or surgical masks.
They are made of several layers, at least one of which must be water repellent in order to prevent the in-and-out flow of fluids. They are especially effective in filtering the leakage of liquids towards the outside, and therefore in protecting other people.