There is more oxygen and carbon dioxide in the surface of the ocean because these gases rises and floats thus it will stay near the surface. Also, the solubility of these gases in water is small therefore only small concentrations can be found in water.