The instrument was purportedly stored in a red sack, and a sailor who revealed the transgressions of another would be "letting the cat out of the bag".
The instrument was supposedly kept in a red sack, and a sailor who exposed the wrongdoings of someone else would be considered to have "revealed a secret."