Check this out.
Yes, it started to prevent bar fights. (bar bets often turn into bar fights don't they?)
"The Guinness book got its start as a volume designed to help settle bar bets. The beer company, which sold the rights to the book in 1992, delivered it to pubs as a promotion for its primary product"