The decision is that lending of digital books causes "market harm for the publishers". It outweighs anything else. So the court only cares about profits of publishers and not right of the buyers, including "first-sale doctrine" and right to lend a legally obtained book. The court sees the case as merely making illegal copies and doesn't want to make analogies with libraries lending out books. It is obvious.
You can apply most of those arguments to a library lending out (distributing) physical books without authorization and causing same harm to the publisher.