They are related, because the energy they use and the mass they grow both come from absorbed CO2.
In other words, every molecule of CO2 expelled by a tree was previously absorbed by the tree. Unlike humans, energy use by trees is carbon neutral. Which means trees cannot grow unless they absorb more CO2 than they expel.