This curve is called an "analemma" and it occurs because of our elliptical and tilted orbit around the sun.