What is removed when an air tank is drained?

In an air brake system, air tanks have drains to remove accumulations of water and compressor oil. Allowing water and oil to accumulate in the system could cause damage to the brakes.