Sailors swabbed the deck for several reasons, the first being to clean and preserve the deck. By working salt water into the wood of the deck it prevented the growth of fungus and washed freshwater away which would rot the wood. The second reason was that it swelled the wood, making the ship more watertight. Surprisingly a dry ship was a ship with wet wood.
Why Were Sailors Always Swabbing The Deck