Atomic clocks are more stable than Earth itself, which is how we know the planet's rotation isn't constant. Sometimes it speeds up, sometimes it slows, but averaged over long intervals it is gradually slowing down.
The Moon's gravity raises tidal bulges in Earth's oceans and rock. Because Earth spins faster than the Moon orbits, those bulges are carried slightly ahead of the Moon, and the resulting friction acts like a gentle brake on Earth's rotation.
The energy doesn't vanish. The same tidal forces change the Moon's orbital speed, causing it to drift slowly farther away from Earth.
These changes are tiny on human timescales, but they are exactly why timekeepers invented the leap second.
