For the types of cloth or surgical masks that the general public wears, the fibers they're made of aren't dense enough to block the exchange of gases like oxygen & carbon dioxide. Also, these masks aren't so tight that air can't get in around the sides.