Sentimental songs like this were known to pass the lips of sailors, though possibly they were more common among "idlers" than seamen.