OK but with libgen offering a much better, non DRM alternative that point is ultimately not an issue IMO
The library also has the current (clickbait-free) print versions of newspapers as e-papers, which the shadow libraries (at least those that I know) have not.
They synergize very well, though. :)
In addition to that, lending ebooks from the public library provides (at least some) income to the e-book authors and editors.