It affected them immeasurably because it enabled them to trade this surplus of food for things that they might need from other countries and thus get other pieces of technology or knowledge or anything similar. They could improve their state that way and that's how development of civilizations began.