Specialization based on comparative advantage, most people consume very little that they produce and produce very little of what they consume. Thus, in order to meet their requirements, people are required to exchange their produce for what they want to consume. Thus specialization necessitates exchange.
The commodity which is imported is produced in surplus in another nation. Therefore an exchange of commodities and services takes place between nations when specialization occurs.