Actually, they sometimes are. We solve hard consulting problems for competitors quite frequently. And those are then the cases with most need for an agreement like this...
(By the by, I'm a fan of the laws allowing people to build their own stuff in their spare time without using company resources).