It heats up quicker because it has a less heat capacity than water
Sand is less dense than water and cools up faster. Soil has like gaps between the particles which are not good at conducting thermal energy. Heat of water is much greater than soil it takes more energy to give the same mass of soil to the same temperature. Dry soil will heat up faster than water. Water is a slow conductor of heat but it needs to gain more energy than sand but sand loses its heat more faster. Water has to lose more of its energy than the sand has to in order for the temperature to go more up. The soil will heat faster because it takes in more heat. Soil loses its heat much faster. Sand is warmer because of what we called land breeze.
The Lord is my Shepherd I shall not be in want. Psalm 23:1