In the last 25 years, German companies got into "reliability engineering". Which is the art of adjusting your drawings in such a way that every component lasts exactly as long as it has to, and not a second longer.
Which is why back in the day, there were some car/washing machine/tool brands and models that seemed to last forever. Whereas now the current models last exactly their warranty/leasing period.
Edit: Other manufacturers do this, too. But for them, it's often coming from the other side of the reliability curve, so they are improving, the ones that were better back then are getting worse.
What I'm trying to understand is why Toyotas can still make great cars at prices comparable, if not inferior, to Germany's (at least here in the US). There's a quality gap there. I don't understand why German cars used to be great looking AND reliable but no longer.