The energy of photons is absorbed by matter in a manner VERY different from friction, and since you asked for a simple explanation, I won't go into what actually happens.
But it's not like a projectile going through the air. Photons don't get slowed down by traveling through the air, that's not how they lose energy. (Photons are light, and travel at the speed of light)
They have a certain amount of energy "stored" in each photon, and it can only be imparted completely. A photon can't lose just part of its energy, it's all or nothing. (Please correct me if I'm misleading the TS, since I have only a basic understanding of the subject)
But yes, the photons originate from the high-energy reactions within the sun. They themselves do have energy, and they can impart that energy onto particles. Originally, it came from the thermo-nuclear reactions in the sun.
There are many different sources for photons, but whenever one is "created" from matter, that matter ends up being less energetic. Again, this is all very simplistic, but I hope that answers your question.