They need other countries to buy their exports to have money to buy resources that are not produced in their country. Also it is so that countries can specialize in producing a good or service and know that the goods that they do not have can be imported from other countries who specialize in that good.