According to the costume designer, Penny Rose, Johnny Depp kept losing his hats, which were initially made of leather, overboard. Since water and leather don’t mix, the hat needed to be made over and over again. At some point, she got tired of it and made the pirate’s hat from rubber. If the hat ended up in the water, it would stay floating and could be used again.