An ear infection may sometimes cause a temporary loss of hearing. This occurs due to the swelling of the ear canal from the infection, essentially blocking sound from reaching the inner ear. This type of hearing loss should subside with proper medication.