Some countries buy more goods than they sell causing a trade deficit, in other words, they spend more than they earn.
Some nations end up operating at a trade deficit for a given year and spend more money than they are bringing in.
Sometimes you may end up trading to much of one thing for another and having a trade deficit that you will need to make up for.