1. the airframe held together despite an explosion at the back. The rudder and horizontal stabilizer stayed on.
2. the aircrew figured out how to control the airplane with no hydraulics, i.e. there was still some redundancy in the system.
3. the landing gear was designed so it could be extended and locked with no hydraulic power, and that worked
4. if the airplane or aircrew was any less, nobody would have survived
5. electric power stayed on
And, airframe companies learn from these disasters, which is why airplane travel is incredibly safe. Boeing airliners, for example, do not locate critical components inline with the turbines. Hydraulic lines do not extend past the inboard engine. There are a number of other improvements as well.
Having worked on 757 flight controls for three years, I can assure you that none of the engineers want any part of a defective design. None want to make any decisions that lead to a smoking hole in the ground. An awful lot of effort is spent pouring over the designs again and again looking for mistakes.