Standing in direct sunlight exposes you to solar radiation, which makes the air feel 10-15 degrees warmer than the actual temperature.
Temperatures are closer to actual air temperatures when you’re in the shade. Staying out of the solar radiation also prevents your skin from being damaged by too much sunlight, which can intensify the feeling of heat on the skin.