Reptiles and amphibians are ectothermic, or cold-blooded. They are unable to generate their own body heat and thus cannot regulate their own body temperature.
Mammals and birds are warm blooded, which means they can make their own body heat. They can do this when it's too cold for them to survive outside.