Unfortunately most accidents are preventable. Planes don't fall out of the sky unless something is wrong.
The rule of thumb is that aircraft are built for a 20-year economic life. That doesn't mean they fall out of the sky after 20 years. But it does mean they need tender loving care.