Tariffs raise the consumer-visible price of those goods. This then, due to demand elasticity, causes consumers in those non-US countries to buy fewer of those products.
Some impact may be badwill as well but quite a bit is first-order impact of second-order tariffs.