Plants need carbon dioxide, and the way they absorb it from the environment is with the help of their leaves.
On the underside of a leaf, there are countless tiny holes called the stomata. The carbon dioxide that a plant need enters into the leaf through diffusion into the stomata.