These wordplay devices were ways of memorizing stories, allowing the storyteller to move through the plot while keeping the listener entertained.
Way before the printing press and the invention of modern prose, storytellers told their tales orally and entirely in verse. The epic poem was a way of sharing stories, and because pencil and paper were scarce in antiquity, storytellers had to memorize their work. These wordplay devices were ways of memorizing stories, allowing the storyteller to move through the plot while keeping the listener entertained.