It's not the same thing. When you give a book to someone else, you lose a physical object and they gain one. To "give" an ebook to someone, you have to copy it. We have a whole body of law about when it's OK to copy things.
IA allowed to read books throught the website so no copies are made. When lending a book through file download they used DRM to prevent reading after the lending term ends.
I'm sorry to have to disagree with you here but in fact every page of a book you show inside of a web browser is under the law a copy of that page of the original book.