Corporations like Boeing make these decisions because they are legally incentivized to.
One way of holding them accountable for these decisions is through torts. Torts are a civil procedure whereby people who do harm negligently or intentionally can be held liable for damages even if they haven't broken a law or a contract.
It's a vital part of preventing wrongdoing in a changing world where many kinds of harms can't be identified and legislated ahead of time.