If comparative advantage is true, then trade is beneficial to both parties, as long as there is no coercion. Why, then, do countries impose tariffs on imported goods and services?

INTERNATIONAL TRADE

If comparative advantage is true, then trade is beneficial to both parties, as long as there is no coercion. Why, then, do countries impose tariffs on imported goods and services?