carbon dioxide diffuses in through the stomata because it is required for photosynthesis so it is constantly being used by the palisade mesophyll, so it maintains a concentration gradient, a low concentration in the spongy mesophyll and a high concentration outside of the leaf