Agree, this is awful, code hardly ever gets simpler.
Same for legislation.
A rewrite is an awful amount of work/pain, hence rare. And cleanly simplifying something complicated is much more work than just throwing an ugly patch on top, so technical debt accumulation is almost inevitable without a strong quality culture