Ear pain in children can be caused by several factors. The most common cause is an ear infection, particularly otitis media, which is an infection of the middle ear. Other potential causes include swimmer's ear (otitis externa), foreign objects in the ear, earwax buildup, and nasal congestion leading to eustachian tube dysfunction. Sometimes, referred pain from a sore throat or dental issues can also cause ear discomfort.