Photosynthesis is the process by which plants, and some bacteria, synthesise food molecules, which they then use, in addition to other things, for respiration.
In birds and mammals, this heat is distributed around the body by the blood to keep these animals warm and help to maintain a constant internal temperature.