Corporations are not sentient entities. They are contracts. They do not "do" things. They do not make decisions. Executives do.
When corporate activity breaks a law or harms people, it means the executives decided to do that.
When a corporation has been fined for something, what you are witnessing is the executives being let off the hook for what they did. Perhaps the prosecutor/regulator wants to keep get big money from corporations after leaving government.