I would guess it's less about it being OK to lose the pilot, but not passengers, and more about the pilot being aware of the type of cargo and its risks.
Article says the pilots association is in opposition, but you're right that individual pilots and their insurance companies are free to accept compensation for the risk.