My understanding is that shanties are working songs: songs sung by sailors off duty are forebitters. Presumably even if the same song.
Also, the Navy's ships used music (possibly from the marine band?), rather than song, to synchonise the working. So you might have had a drum beat to pace the hauling, pumping etc.