There is a book published some time ago called (I think) tThe language and Lore of Schoolchidlren by Peter and Iona Opie which goes into these songs in lots of fascinating detail. Some of them are hundreds of years old and have been passed down through generations of children. Well worth searching out.