If domestically-owned assets located abroad earn more income than domestic assets owned by foreigners, then there will be a net flow of income from overseas. This is a collateral benefit to running a trade surplus, especially over several years.
An example might be the United Kingdom (UK) during the 19th century. Prior to the 1880's, the UK exported far more than it imported. With the foreign money, it bought assets in the economies of other countries, such as the USA, Continental Europe, and the future Commonwealth of Nations. These assets naturally earned a lot of income, as they accumulated over many decades. The income from these assets was so large that, after the 1880's, the UK ran a trade deficit but still had a current account surplus.
In the case of the UK, the current account surplus from the NFFI was still large enough that the UK could continue to buy foreign assets that earned income, even as its trade deficit grew during the early 20th century.