This is exactly what the company is hoping for. In actuality, you can put literally anything in a contract. Sell your first born baby, sacrifice a goat, whatever. Signing a piece of paper doesn't make it true or required.
Companies are really banking on people making the value decision that doing the legal stuff is too much work, time, and money, so they're hoping for self-enforcement. It's the same reason we still see companies commonly doing things like terminating employees before maternity leave. They know a new mother (who is now jobless) isn't going to bother with the trouble of a potentially multi-year wrongful termination suit.