Commerce developed as a result of "specialization".
Specialization refers to the process of focusing on a specific task or activity, usually based on an individual's or group's skills, resources, or location. As individuals or groups specialize in different activities, they become more efficient and productive, which leads to an increase in output and surplus.
Specialization creates a situation where individuals or groups have a surplus of a particular product or service that they can trade with others who have a surplus of a different product or service. This leads to the exchange of goods and services, which is the basis of commerce.
For example, if a farmer specializes in producing wheat and has a surplus, they can trade with a baker who specializes in producing bread. The baker can provide the farmer with goods or services that they need, such as tools or medical care, in exchange for the wheat.
As specialization increases and trade becomes more common, the exchange of goods and services leads to the development of markets, where buyers and sellers come together to exchange goods and services. These markets eventually develop into more complex economic systems, which include banking, finance, and other institutions that facilitate commerce and trade.
In summary, commerce developed as a result of specialization, which led to the exchange of goods and services and the development of markets and economic systems.