Why are the hottest days of the year the 2 months after the summer solstice?

And the coldest the 2 months following the winter solstice?
3 answers 3