Leap years happen every 4 years, save for when it lines up to a century (while 365 and a quarter is a reasonable approximation it is not exact), except for when that century is a millennium.
You also have leap seconds as well as the earth's rotational speed is not constant. It also contrasts...