Advances in technology allows farming villages along the Nile to produce more food than they needed (a surplus) so that eventually not everyone would have been needed to farm, leading to specialization, or people who do things other than farm for a living like artisans and merchants.