In the direct sunlight there are Infrared Rays. Infrared rays have strong heating effect. But in shade there is no direct sunlight with these heating Rays. Only reflected or diffused light is there. So, temperature is lower in shade than in direct sunlight