UTC is an atomic timescale: it is built from clocks far more stable than Earth's rotation. UT1, or mean solar time, is set by the planet's actual spin — and that spin is not constant. It speeds up and slows down, though averaged over long periods the trend is a gradual slowing.
When the corrections began in 1972, UTC needed a ten-second adjustment, and leap seconds followed roughly every year and a half on average. Each one keeps clock time within a second of the Sun.
Leap seconds are a headache for computers and networks that assume every minute has exactly 60 seconds. In 2022 the General Conference on Weights and Measures decided that the maximum allowed difference between UT1 and UTC will be increased in, or before, 2035 — effectively ending the leap second.
