You can get the moisture out of compressed air by draining the tank. Other methods include water traps, filter regulators, and air dryers. Removing the moisture also ensures the internal parts of your compressor are not damaged, reducing repair costs.