That's a phenomenon that can be blamed on low-IQ or disengaged owners.
Some companies have owners that are locked in, who know where the true value of their business lies (usually this involves a high quality product), and holds the management to account to keep the golden-egg-laying goose alive.
But other companies are owned by index funds, ETFs, and/or dumb people who don't know or care how things work. These have no defense against enshittifying.
I've bought some products that are of almost egregiously high quality, and nearly 100% of the time there's family ownership, or it's still run by the founders.