Medically reviewed by Daniel More, MD An ear infection often happens when a virus or bacteria causes inflammation in the ear.