The other trick (more common on washing machines) is to build electronic control boards that last 5 years or less, so when the washer breaks you have to pay $500 for a new control board. Washing machines used to have mechanical controls that lasted 30 years. Now we have electronic controls with no moving parts that theoretically could last forever but they die in a couple of years, usually because of poor power supply design or overheating.
This is deliberate. The companies have figured out that customers will tolerate it and go buy a new appliance every 5 years. Every company wants that recurring revenue stream.
Why doesn't competition solve this problem? Many of the big name brands (Whirlpool, Maytag, Amana, Kitchenaid, Jennair, etc.) are all the same company now [0]. Kenmore and LG are still separate but on the whole there's very little competition. The government should never have allowed this degree of consolidation.