The Wall Street Journal has an article claiming that Apple was in talks with Goodreads first. Apparently they wanted to use their reviews within iTunes, like they are already using the Rotten Tomatos movie ratings. The article then pretty much suggests Amazon bought Goodreads just to prevent that. Which is in line with some theories mentioned here.
WSJ article.