Never had a "modern" fridge except as a kid. All looked like low budget fridges from the 80's or 90's.
The newer apartments and house I’ve lived in as an adult have been decent in that regard, probably because they’re closer to being up to spec electrically and have newer lines running to them thanks to being in urban areas, but one of my childhood homes out in the countryside which is now approaching a century in age had a “habit” of killing computers every so often.
And if you have appliances/computers die, you should get your electricity monitored to see if it's out of bounds.
In fact, anytime an appliance dies you should do a post-mortem to try to identify if something about the house may have contributed to it (hard water, electrical spikes, etc).
IMO, most "failures" are from failure to replace relays and door seals.
And same in experience. At large, the doors that are getting opened and closed repeatedly by my kids are far far more likely to get broken than any others. Which leads to door seals that are not up to where they should be. And will not surprise me that we run those compressors harder than we would otherwise. Which will lead to those failing.
The impact of surprises… bad components, variances in operational conditions, etc can have a big impact. Also, the quality improvements that emissions controls had on cars didn’t happen for white goods. Cars were hit with emissions AND safety standards, which raised prices.
For appliances instead they incentivize things like all electronic controls (more prone to failure with rough service or high heat), and undersizing components. Old appliances were all mechanical and easily fixed, the electronics tend to turnover quickly and are difficult or impossible to get from a 3rd party.
I've had one fridge fail on me in my life. The compressor (I think) failed and no longer cooled the fridge. The difference in replacing the compressor or getting a new fridge was negligible.
Other than that, I've only changed fridges when I moved. The house we bought didn't come with a fridge, so we had to buy one.
One the compressor died & would have cost about 5 times the value of the fridge to replace. One a coolant line cracked (guessing just age). One the seals on the doors failed. One actually started HEATING things… that was ODD. One just… stopped, no idea what was wrong but nothing obvious.
Old stuff breaks.