Answer :

The Earth does not lose its heat at night as quickly as the moon because the Earth has an atmosphere. If you don't know what the word atmosphere means, another way of thinking about it is a blanket around the Earth; a blanket that we can see through.
This is because the moon is formed of rock and it can become cooler not like Earth surface of 70% water and 30% land.