Why is constant body temperature maintained by mammals?

 Why is constant body temperature maintained by mammals?