The story
Uncertain. The OED speculates that it might derive from Old French heaumet (whence helmet), a diminutive of heaume (“helm”) supposedly applied to the bar of it; however, compare the early (1600s) use of humet for a slab of stone or tombstone.
Etymology from Wiktionary, CC BY-SA 4.0.