Why are the temperature ranges on mercury so dramatic?

Because it doesn't have an atmosphere or its atmosphere is very thin