An explanation of leap seconds, from the Time Service Department, U.S. Naval Observatory.
Historically, the second was defined in terms of the rotation of the Earth as 1/86,400 of a mean solar day. In 1956, the International Committee for Weights and Measures, under the authority given it by the Tenth General Conference on Weights and Measures in 1954, defined the second in terms of the period of revolution of the Earth around the Sun for a particular epoch, because by then it had become recognized that the Earth's rotation was not sufficiently uniform as a standard of time. ...
The Earth is constantly undergoing a deceleration caused by the braking action of the tides. Through the use of ancient observations of eclipses, it is possible to determine the average deceleration of the Earth to be roughly 1.4 milliseconds per day per century. This deceleration causes the Earth's rotational time to slow with respect to the atomic clock time. Thus, the definition of the ephemeris second embodied in [Simon] Newcomb's motion of the Sun [described in his Tables of the Sun] was implicitly equal to the average mean solar second over the eighteenth and nineteenth centuries. Modern studies have indicated that the epoch at which the mean solar day was exactly 86,400 SI seconds was approximately 1820. This is also the approximate mean epoch of the observations analyzed by Newcomb, ranging in date from 1750 to 1892, that resulted in the definition of the mean solar day on the scale of Ephemeris Time. Before then, the mean solar day was shorter than 86,400 seconds and since then it has been longer than 86,400 seconds.
... Over the course of one year, the difference accumulates to almost one second, which is compensated by the insertion of a leap second into the scale of UTC with a current regularity of a little less than once per year. Other factors also affect the Earth, some in unpredictable ways, so that it is necessary to monitor the Earth's rotation continuously.