Please what could be the cause of mucus coming out of a child's ear?

Please what could be the cause of mucus coming out of a child’s ear?

infection leading to otitis media.

An infection

Ear or head