Seawater has many different gases dissolved in it, especially nitrogen, oxygen and carbon dioxide. It exchanges these gases with the atmosphere to keep a balance between the ocean and the atmosphere. This exchange is helped by the mixing of the surface by wind and waves.