Plants do not harvest energy for free. Seeds have stored energy from the previous plant and plants have to use water and carbon dioxide to create glucose with that sunlight. That process is not “free”. They need some glucose(sugar) to start with.