The factor that mostly produced it was that bronze age societies started growing larger and gathering more power, sort of creating nations in the process. Having large states like this produced an era of peace where rulers would trade with other rulers and establish trade networks, not going to wars since there was no need.