Birds and mammals are both endothermic, meaning they metabolically generate the heat they need to keep their body within a certain temperature ranger.
But birds are closer relatives to reptiles than they are to mammals, and reptiles are not endothermic. Thus birds and mammals developed endothermy independently; and here is the question:
How does thermal regulation differ in birds and mammals?