The story
Uncertain. Plausible etymologies compete: *From the flowers tending to emerge in May. *From a popping sound made by stepping on dropped fruit. *An alteration of maracock, a similar flower; perhaps influenced by macock.
Etymology from Wiktionary, CC BY-SA 4.0.