To allow oxygen molecule into the leaf to start photosynthesis, and to allow carbon dioxide out of the leaf after photosynthesis is over.