Thermoregulation
In that state, they are less aware and less able to take flight, so there is a greater risk of predators. However, when they are asleep they cannot feed, and at their normal rate of metabolism they need sugar regularly. The torpor is their way of saving energy which they cannot replace until the next day.