True, corporations are incomprehensible if you try to think of them as people, even though legally they sort of are. :( Another way to look at it is that, in the context of publicly-held corporations, *corporate law* is the only morality. Google isn't an evil corporation--it would be a truly evil human, but in fact it's a very good corporation. "Don't be evil" still applies, it's just that "good" has a different meaning here.
We've created extremely powerful creatures whose only morality is "maximize stockholder value," and "don't get caught when you break the law." Then, we act surprised when they ruin lives, dodge taxes, destroy the environment, treat their own customers badly, and in fact do anything they think they can get away with to maximize stockholder value.
Racism? Bigotry? Only has a moral import in the context of "public opinion," the tax advantages of "woman owned" or the regulatory requirement to do sensitivity training. Etc.