Carbon dioxide is released during respiration but used up during photosynthesis. The reason that plants release oxygen is because the amount of carbon dioxide released by the plants is, for the most part, used in photosynthesis; however, all of the oxygen produced is not used in respiration. Thus, the net outflow of gas from a plant is that of oxygen.