Why do leap years and leap days exist at all?
The introduction of leap years and leap days is a measure to synchronize our calendar with astronomical time, specifically the Earth's orbital period around the sun. A tropical year, i.e. the time it takes for the Earth to complete one full orbit around the sun, lasts approximately 365.2425 days. The Gregorian calendar that we use today, however, is based on a year of 365 days. To compensate for this discrepancy and prevent the seasons from shifting over time, the calendar adds an extra day every four years. This extra day, February 29, makes up the leap year and helps to align the calendar with the astronomical season.