Moving from evidence to supposition, from what little I've been able to find about Rev. Goodenough, I would guess that the song was written for some ship-board entertainment, (imagine Ali Baba,) and the words probably made good sense in their original context.