Is it all inevitable?
“Social complexity and government also appeared in other ways. For example, through trade. When pirates and marauders disrupted trade, they reduced wealth. Traders and local governments then organized to eliminate the threats. Romans expanded into the Dalmatian coast, for example, to stop pirates. It’s one of the reasons why later both Venice and the Hanseatic League appeared and gained power. They wanted to secure trade, and for that they needed defense. Defense requires organization, which is institutionalized as a government. Trade begets government.”
https://unchartedterritories.tomaspueyo.com/p/history-network-effects