I remember doing this poem at school in the 50s, and then singing Phil Ochs version in folk music clubs in the UK in the 60s. Now, this poem was very popular 100yrs ago and I wouldn't be surprised if it had been set to music way back in the day..as were lots of narrative poems.