I thought that was just to correct for the initial definition of a second which was inaccurate. But, it looks like it is the reason for leap seconds:
https://www.timeanddate.com/time/leap-seconds-background.htm....
https://www.timeanddate.com/time/leap-seconds-background.htm....