Why so safe?
Two words: safety culture.
In aviation we have a deliberately obsessive interest in EVERYTHING that goes wrong. Every time an avionic device falls over, a pilot suffers a crippling stomach upset, a crack appears where none was expected, a passenger goes off the rails and does something stupid on-board - it gets reported, analysed, and many clever people are involved in determining how to stop that problem either happening again, or if it does, endangering safety.
That is of-course extended to avionics - design, testing and operations.
Of course we get gaps, errors, arrogance, "but we've always done it this way", same as any other community. But the community default is towards safety culture - rather than (say) shipping or road transport where it's more something they do when they've no choice.
G