Because a foreign power influencing an election is fundamentally different than a domestic campaign. The foreign power has their own interests, which are potentially at odds with the interests of the electorate.
Ostensibly, if you campaign in country A and are a citizen of country A, then you’re “in the same boat” as the electorate. Of course, with economic stratification this becomes increasingly less true (fast food worker may live in same country as $$$ donor, but they are effectively living under different policies).
I like the “this can’t really be compared to Windows or macOS” aspects of tiling window managers. I like it when the window manager sort of “gets out of the way,” but that’s just me.