You haven't worked with many contracts, have you? Unenforceable clauses are the norm, most people are willing to follow them rather than risk having to fight them in court.
I have seen a lot of companies put unenforceable stuff into their employment agreements, separation agreements, etc.