Generic answer :
The temperature in the desert can change drastically from day to night because the air is so dry that heat escapes rapidly at night.
Extra fact :
You could also say that another factor is because of the lack of clouds, there is no barrier between the sky and the earth, leading to direct sunlight and very cold weather ( at different times ).
This is a concise explanation, let me know if you want more!