Employment contracts are almost always written to supply as many benefits to the employer and mitigate as many risks as possible.
The worst case scenario for them is that they find out that certain clauses are not enforceable. In reality I imagine it is often known that some may be unenforceable but they are added anyway on the basis that the employee doesn't know this.