The poles receive more direct sunshine so it has to do with the angle that the light hits. The Earth is round and when light hits it the light wraps around the earth. At the poles the light is very stretched and at the equator it is very direct hence it is hotter at the poles.