It's actually a clearly-marked checkbox in the Kindle publishing portal: "Allow lending for this book". It's not like it's buried somewhere deep in subclause J of paragraph 97. The authors who have their books put on Amazon through a publisher may not have known about this, but there's zero excuse for the indies.