What happens when shareholders are out of the country?

When I get dividends from US stocks, I pay a US witholding tax before the cash lands in my Canadian account

Well seeing as they are a shareholder who has bought in, they are effectively investing in our economy giving our companies greater access to capital to grow at cheaper rates at the expense of investing in their own country.