Countries regularly legislate and regulate against various forms of unfair terms in contracts, ranging from the deceptive and absurd to fairly mundane things. You can’t enter into contracts requiring illegal behaviour for instance. This is true in the U.S. and all other countries that I’m aware of.
In the UK and other European countries, particularly regarding consumer goods or other kinds of contracts with an inherent asymmetry of negotiating power, there are lots of things you can’t agree in contracts, such as disclaiming general fitness for purpose and safety.
Deciding that you can’t agree away your rights to redress through the judicial system seems like a reasonable extension of these kinds of rules.