There's a difference between immoral and irrational.
It is rational for a company to maximize their returns for shareholders and to skip taxes wherever legally possible.
Morality is relative, but if you went simply by utilitarian ethics, then a company would be acting irrational by maximizing the amount of good it provides.
There is crossover between rationality and ethical behavior for companies (especially B-Corps). A good case would be plastic water bottles. It's good that they are using thinner plastic lids now, and is rational because it cuts costs, but non-biodegradable water bottles are a huge filler for landfills, and probably are not maximizing the good.
It is rational for a company to maximize their returns for shareholders and to skip taxes wherever legally possible.
Morality is relative, but if you went simply by utilitarian ethics, then a company would be acting irrational by maximizing the amount of good it provides.
There is crossover between rationality and ethical behavior for companies (especially B-Corps). A good case would be plastic water bottles. It's good that they are using thinner plastic lids now, and is rational because it cuts costs, but non-biodegradable water bottles are a huge filler for landfills, and probably are not maximizing the good.