It's also the same as "Baa Baa Black Sheep." In a centuries-old type of recycling, older tunes often got reused when someone wrote new lyrics. Some old hymnbooks will even have a note about what tune (or alternate tune) a particular hymn is to be sung to.
(And I didn't bother to sing it, because know-it-all Bunny already knew)
