It might have been better to be barefooted on pirates' ships, at least during battle. Slippery decks -> woops...(wo)man overboard! Ordinary sailors with mast- or deckduty often didn't were shoes, an officer or a captain certainly would were shoes or boots.