When the sun shines in the summer, streets and asphalt heat up. This heat remains in the ground for some time and is then lost to the air.
You can test this yourself in the evening after a sunny summers day.
Walk barefoot on a pavement or concrete surface at sunset. The surface is still warm even though the Sun has set.
Now step on the grass. The surface feels very much cooler.