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.
That said, the lyrics of “Rub-a-Dub-Dub” refer to a decidedly adult situation. Oral traditions are thought to go back as far ...