It will be legal to share in some decades. Not that Amazon will bother, though.
I don't expect an amazon.com/checkoutrarebooks page but I also don't really think the legality of sharing the content has been much of a concern for these companies either. Ironically, one of the few things Meta got in trouble about with building their AI was helping share the training data.