Technology that never failed would be perfect and I don't believe that's achievable. Flying is incredibly safe, but aircraft and flight are both complex. Things break, pilots make mistakes, weather conditions can create unforeseen problems, etc. And don't forget the financial aspect. Some safety risks are deemed to expensive to mitigate. In other words, profit motives exceed safety concerns. Companies know it's sometimes cheaper to let a few people die in an accident than to fix a problem.