having been tracking some of this stuff for my projects. it could also be the velocity some of the bigger packages move at. Up to date. 1 month later every item in your package.json needs to be updated. Then on top of that you might have a dozen or so direct items. Those will drag in several thousand items.
Now something like artifactory and your local npm cache should catch a lot of that but still...
I'm guilty of doing an install for each CI run, but I've done Artifactory/similar and dependency caching before and was bitten both times - where I work has been through at least three iterations of "product to mirror npm, Maven, NuGet etc" so I'm choosing not to be rug-pulled in the near future, and GitLab's dependency caching was actually slower than just downloading each time (CI time was getting close to 30 minutes so I wasn't prepared to slow it down any more).
But yeah agreed, probably the Javascript library ecosystem being even further accelerated by AI.
Now something like artifactory and your local npm cache should catch a lot of that but still...