Actually, the vast majority of nursery rhymes were written with religious symbolism in mind. For example, the song talks about his fleece white as snow (Jesus being sinless), or the lamb following her to school (similar to the story of young Jesus).
Still weirds me out how many people were religious back and yet slavery and poor treatment of the native Americans was rampant.