All matter we meet everyday, from computers to trees are controlled by electromagnetic interactions and gravity. Our senses and bodies work with electromagnetic interactions.
Light/radiation is electromagnetic and interacts with matter. We have discovered that in the same way that matter is composed of atoms and molecules, light is composed of photons, and it is photons that interact with the atoms/molecules of matter and we see ( optical wavelengths), feel heat ( infrared wavelengths) and burn in the sun ( uptraviolet wavelengths). All these are composed of photons.
The light/photons from the sun hits the leaves of the tree and is absorbed, i.e. atoms/molecules go to different energy levels and use the energy given up by the photons to store it in wood and generally in being alive. When wood is burned, the changes in energy levels by the chemical changes of combustion release photons and give up the energy stored in the woold, which energy came from the sun.
So the photons are absorbed and disappear when hitting the leaves of the tree. It is energy that is absorbed and conserved and released as photons when burning.