Words that rhyme have the same sound. For example, 'Cheese' and 'peas' are words that both have the same sound. You can write rhyming poems by using pairs or groups of words that use the same sounds.
author of Heavy Words Lightly Thrown: The Reason Behind the Rhyme, told NPR. Over time, the rhyme’s salacious origins made way for a more child-friendly, less moralistic, and sillier vibe.