Filters for conventional masks depend on static electricity for their effectiveness. They significantly fail – and sometimes even cease to function – when exposed to any humid or wet conditions such as sweat, spit, rain, or regular breathing.
This is partially why typical medical masks are recommended to be changed and thrown out multiple times a day. Many cloth masks have no filtration at all, and others offer filters that must be thrown out regularly due to their reliance on traditional filtration.