It lending done flagrantly in violation of the licensing. They were taking a copy licensed to be lent ONCE and giving it to thousands of people at once.
Note that I’m not commenting on whether a reasonable person would also interpret copyright law this way, or on whether the laws are fair, just what the judgment was.
I'm curious what license applies when I buy a physical book, as a library does? Do you have a resource where I could learn more?