Maybe I'm ignorant or maybe I'm skeptical but I'd always assumed that was their sole purpose: to protect current employer's interests by legally forbidding novel approaches to solving problems within their current purview.
Sometimes employers even know that they aren't enforceable but are still doing them "because our lawyers say so." Which is a standard negotiating tactic, but there you go.