In order to create beer, you need several grains that couldn't found in Egypt due to its harsh environment.
So, many Mesopotamian traders exchange the beer with other resources from Egypt. During the exchange process, many technology and cultures were swapped between the two nation, and they both developed into a more advanced society because of it.