It happens as when the earth orbits the sun then it goes in an oval shape and it goes near it and away from it.when it goes near it then its summer when it goes away from it then its winter.
Didn't find the answer you were looking for?