I imagine it updates to make it easier for a reader to grab a link directly to the section they're currently looking at.
They could use `replaceState`[1] instead of `pushState` though so as not to mess with your browser history.
[1]https://developer.mozilla.org/en-US/docs/Web/API/History_API...