The story
The weapon originated in Bohemia, the two protruding stops or lugs at the base of the weapon's head were likened to ears, and the entire spearhead with ears was fancifully likened to an earspoon (“ear pick”).
Etymology from Wiktionary, CC BY-SA 4.0.