That's not true. We have ways of saying "it's wrong even if you make more money" and they are called laws.
It's not the shareholders or boards job to enforce laws (except to the extent it is their job to do what is in the best interest of the company.)
One of the key lessons of the Trump years is that laws alone do nothing to stop determined bad behavior. Political and societal norms are basically required for any kind of good governance.