Greed is a very human emotion, corporations are like very powerful sociopaths. No-emotion machines that optimize for a single end goal (shareholder money) within the given ruleset: the law.
(Or more realistically whatever they can get away with while still turning profit, ie profit is greater than whatever the repercussions cost).