Earth takes the same position relative to orbital event in 31 556 925 seconds.
It is called Tropical Year.
During that time it turns 365.2421875 times.
Which means, it completes 365 turns about 0.242 days earlier than making full circle.
Our 24 hours day was designed to have 86400 seconds in one Solar day.
(The 86400 is on average, plus or minus 18 to 29 seconds due to speed changes in accordance with Kepler's Second Law.)
One solar day is time until the same meridian points towards Sun again.
It is not 360 degrees, it is 360.9856 degrees (almost 361).
It is because Earth moved forward in orbit and has to "look a bit back" to point the Sun again.
Time required to spin for 360 degrees is Sidereal day, and is measured towards distant, apparently unmovable star.
It is not 24 hours, but a bit shorter, 23 h, 56 min, 4.1 sec.
For our calendar it is irrelevant.
When people designed calendar they didn't know about it.
They designed day based on Sun, nor on stars, and year based on whole number of such days.
Astronomers at the time of Julius Caesar noticed that there is difference between solstices and full set of 365 days.
To correct that error they added one more day every four years to compensate for those 6 hours.
That's how Julian calendar was created.
It measures 31 557 600 seconds per year and still doesn't hit the exact number of 31 556 925 seconds.
The time between the full 365 days and the full orbital circle wasnt exactly 6 hours, it was 5 hours 48 minutes and 45 seconds.
The difference accumulated by adding one unnecessary day every 127 years.
At the time of Pope Gregory XIII the error accumulated to 10 days.
Calendar was late.
Instead of showing 21st of March for vernal equinox, it was still showing March 11th.
Solstices weren't at the same dates as in the time of Julius Caesar.
So, calendar was corrected again, and extra days were removed by skipping them.
Thursday, 4 October 1582 was followed by Friday, 15 October 1582.
Some non-catholic countries didn't accept the change yet.
Few haven't until 19th or even 20th century.
Meanwhile their error grew by one more day every 127 years.
Now you understand how "October Revolution" in Russia started in 1917 on October 25, while it was November 7 in the rest of the world.
(NASA didn't exist until 1958.)
Additionally, to prevent further accumulation of error, changes were made:
Julian calendar simply adds one leap day every 4 years.
Gregorian calendar does the same, except for years divisible by 100 but not by 400.
So, years 1700, 1800 and 1900 weren't leap years, but 2000 was.
Years 2100, 2200, 2300 won't be leap years, but 2400 will be.
Old Julian calendar makes 1 day error every 127 years.
Gregorian calendar measures 31 556 952 seconds and is in error for 26.7 seconds.
Gregorian calendar is off by 1 day every 3236 years.
What you say would happen with Sun (6 months later on the other side of Earth) actually happens with stars and constellations.
It is because of difference between Solar day and Sideral day.
In different times of the year the night side of Earth points to different stars and constellations.
Ever heard of Summer Triangle, or Winter Hexagon?