I believe one (serious) theory is that an agricultural society could produce beer. People thought that was worth the trade-off.
As you say...