Some of the words were collected by Pete Seeger from various locations and places. He added some others to round out the verses and set it all to music.
I learned it from one of his recordings.