It was not uncommon for seamen to entertain themselves by dancing.
There was nothing ‘hallo sailor’ about this, and the exercise was encouraged by the officers, who rarely took part, it being beneath their imagined dignity.
‘Imagined’ because, to the lower deck, the officers had very little dignity, as the crew could see through the thin facade of competence, as is no doubt the case today.