The free market was envisioned for the known purposes of (a) creating peaceful relations between then expanding empires, and (b) explaining why people treated each other well in ordinary commercial life vs inter-tribal life, (c) making use of comparative advantage between non-enemies. (d) reducing artificial shortages of food in particular that gave profits to large land holders at the cost of starving citizens.

The free market ideology was a jewish invention, just as were the opposing forces of capitalism and communism.

In the west it’s just simple reciprocity or not (unearned gains).