Here's why that's the case:
* Mammals are endothermic: This means they can regulate their own body temperature internally, maintaining a stable core temperature regardless of external conditions. This allows them to live in a wide range of environments.
* Evolutionary adaptation: Warm-bloodedness is a key adaptation that has allowed mammals to thrive. It allows them to be active at night, in cold weather, and in a variety of habitats.
While giant pandas are primarily herbivorous, they are still classified as mammals, and therefore inherit this crucial trait from their mammalian ancestors.