How does specialization enable countries to trade with one another?

How does specialization enable countries to trade with one another?