Swimmer’s ear happens when water or moisture gets trapped in the ear canal, creating an ideal environment for bacteria or fungi to grow. This can happen after swimming, bathing, or even sweating. Other causes include irritation from objects like cotton swabs or earplugs, which can damage the skin in the ear canal and allow bacteria to enter.
Sources: