The Earth is in an orbit around the sun, which is what we basically set out clocks by, However, we see the stars in motion as the earth rotates on its own axis while it orbits around the Sun..
Sidereal time is a measure relative to the fixed stars. The amount of time it takes Earth to complete one rotation on its own axis so
that stars will appears twice on the observers celestial meridian. Since the Earth rotates as it is in motion around the Sun, the Earths position relative to the stars varies each day, so a sidereal day is approximately 4 min shorter than the solar day.
Does that make any sense?
Other thing you might want to check would be: Solar day, Mean solar day, Earths rotation and orbital motion, Diurnal Motion..
On a side note:
Leap year is to correct for the fraction more than 365 days it actually takes the Earth to circle the Sun. It's meant to keep the Gregorian calender, which is the one most of us use, in sync with the Vernal equinox - astronomical / seasonal year. To keep the Vernal Equinox on or close to March 21st.
The vernal equinox year is currently about 365.242375 days long.
The Gregorian leap year rule gives an average year length of 365.2425 days
Have A Nice ________