If it's literally doing no operations inside of Canada then they have nothing to worry about because Canada couldn't do anything to them.
Its pretty hypocritical of companies to rely on local laws to protect them but then act like all their customers on the internet don't exist in any real space and aren't under a nation states juridisction.
I'd prefer a completely free internet, but you don't get to have it both ways
Now what you are staying is something completely different from the OPs argument - you are stating "Google is not a Canadian entity so neither Op's or my arguments matter". I am not a legal expert so I have no idea but the statement that Google "does not operate at all in Canada" seems misleading as I know that Google has offices based in Canada. They have Canadian citizens working in Canadian offices under a registered entity so I am not sure why you are saying that Google "does not operate at all in Canada".
* The ban affects US companies
* The taxes affect US citizens
* The laws affect US citizens
This has nothing to do with this decision.
What Canada is aiming to do is to force a non-Canadian company to follow Canadian law even if it does not operate at all in Canada.