Even if one country has an absolute advantage in producing two products over another country, trading with that other country will still yield more output for both countries than if the more efficient producer did everything for themselves.
The country with the absolute advantage in producing both products would still produce both products, but less of the one they would trade for, allowing them to essentially allocate more resources to producing the product that they’re comparatively most efficient at produc