What was the meaning of "swab the deck" used on medieval ships?

What was the meaning of “swab the deck” used on medieval ships?