When it comes to mechanical failures like that, it's never due to incompetence; it's due to cost cutting concerns (e.g. using less material, cheaper / inferior material) and / or planned obsolescence. Automotive engineers are highly competent, and most will have had a lot of education when it comes to materials, strengths, stresses, wear and tear, etcetera. And car companies build up that knowledge over the decades.
Definitely not a problem with all cars, but the better built cars are more expensive.
I want to say "you get what you pay for", but at the same time I know nowadays there are a lot of products (e.g. electrical tools) where the brand is bought up and the new owner makes big cost cutting measures to maximize their profit margin, the money coming from "brand inertia", that is, a brand is known for being good for a couple years after they start reducing quality and durability.