When you have a viral or bacterial infection, like the flu or a cold, your immune system has to work harder, which makes your body produce more mucus and swelling. Keeping yourself clean can lower your chance of getting infections.