Assuming it was "just" about banning infinite scrolling. Not saying it is a good idea, but right now I cannot think of a legitimate use case where you would need it, unless your goal is engagement.
I've seen it used in non-addictive ways for search results (both specialized[1] and generic global search engines) and portfolios (for showcasing work progressively not merely constantly appending content to the end of singularly viewed work like say news sites do now), off the top of my head.
[1] Eg: printables.com (for open source, 3D print files)
But they ain't infinite (I assume). Maybe long, but finite. That is a big difference as it still gives meaning to the scrollbar. Infinite scroll is endlessly adding new content so you simply cannot scroll to the bottom.
Technically, infinite scroll is of course finite, too. Unless it adds newly created content, but if you count that as infinite then logs can be infinite too.
That's exactly why you don't write legislation to ban infinite scroll but 'addictive' design. Then it's ultimately up to the courts to decide, and they have the necessary leeway to judge that journalctl -f isn't addictive but TikTok is, even if they both use a version of infinite scroll.