When a country has a trade deficit it needs to acquire more foreign currency than it receives through trade. For example, if Canada had a trade deficit of $100 to the US, it would have to acquired $100 in American currency to pay for the extra goods.
What is more, a country with a trade deficit will also be over-supplying other countries with their own currency. The US now has an extra $100 CND that it does not need.