When a company does something illegal, the employees are also punished in a "diffuse" manner, as a result of economic sanctions. When a big company has to pay a X million fine, it is X less million for paying employees, so less raises, maybe layoffs, etc... People who invested in that unlawful company will also lose money.
When it is not just money matters (like when people may die), we usually designate one person, and say something like "if people die, you go do jail, make sure it doesn't happen". Up to him to make sure he does what is necessary, including punishing employees who do not follow the rules.