The sand blocks the sun. It blocks the heat.
It keeps the gecko cool while the sun shines.