The Phrase Finder explains that this is an expression for a “…prize given to make fun of the loser in a contest or game.” Further explanation is that the word “booby” has been used to mean dunce or nincompoop since the late sixteenth century. “The word probably derives from the Spanish word ‘bobo’ meaning ‘fool’ or ‘dunce’.”