I'd imagine ukulele's would have been played often enough by sailors relaxing with a few songs., especially if the ships they'd been on had dropped anchor in Hawaii.
Easy to play, easy to tuck away in your kit, and cheap. I'm sure there were plenty around.