Libraries build systems to preserve and provide access. Companies discover those systems are efficient. Companies exploit them at scale. Rights holders respond by tightening access and demanding licenses. Libraries get squeezed out of the role they have played for centuries. The public loses.
It's capitalism. Capitalism ruins everything.