You are oversimplifying the situation. Two sufficiently sophisticated parties having more or less balanced bargaining power, as was the case in this situation, should be free to contract according to their will and good/bad judgment.
Of course, if you are a retail consumer who had no bargaining power and agreed to a standard form contract without any legal counsel then different rules should apply to you and in such cases courts will apply the test of unconscionability before enforcing any clause.