Light and carbon dioxide are above ground, while water and minerals are in the soil.
The apical meristems in shoots and roots allow elongation of the plant to reach these resources.