We learned it in English lessons in primary school. Quite a few nursery rhymes seem to be based on historic happenings (like the plague). This is about the plague, getting rosey rings is a symptom, posies of herbs were used to protect against the plague or to heal, and the sneezing is the final step before you fall down and die. At least, that's what we were taught, maybe the scholars have changed their minds?
no subject