Don't confuse respiration with photosynthesis. Photosynthesis is the process by which plants, and some bacteria, synthesise food molecules - which they then use, in addition to other things, for respiration
As animals respire, heat is also released. In birds and mammals, this heat is distributed around the body by the blood. It keeps these animals warm and helps to keep a constant internal temperature
Energy is also used for activetransport - the transport of molecules against their concentrationgradient from a region of low concentration to a region of high concentration