The storyProbably from cock (“rooster”) + sure, early 16th c.Etymology from Wiktionary, CC BY-SA 4.0.