The same logic applies to countries. Each country should specialize in producing those things that it produces most efficiently, rather than producing a bit of everything, because that way its income will be higher.