In the UK at least, there are a variety of reasons why a contract, or at least part of it, may be unenforceable - such as unfair/unreasonable terms, things that contradict the law, or the particular terms were considered "hidden" (e.g. too small a font size, or an important clause is buried in page 27 of an unrelated section).