This submersible used untested techniques. They didn't adhere the layers together properly and apparently never bothered to X-ray the tube as that would have shown at least some of the defects. It also seems like there were other design issues with how the tube was paired to the ends.
Most importantly, the deaths were caused by negligence during operation and maintenance. They had the data showing when the hull was damaged on the previous expedition, but either never did their due diligence and analyze it or ignored the results. Even during their last expedition, they may well have avoided death if the alarms had been heeded.
EDIT: to answer the people who seem skeptical, there are companies making carbon fiber vessels that have successfully gone much deeper than those Titanic dives. We're still in the learning stages with the technology, but we'll eventually find the combinations and standards that can make it safe to use (at which point, it may become better than our current solutions). Until then, maybe we shouldn't be shoving people into damaged experimental vessels to see what happens.
https://www.compositeenergytechnologies.com/underwater-carbo...
https://www.researchgate.net/publication/376273321_Carbon_Fi...