I’ve had employment contracts (financial services) that forbade any other employment at all.
I wasn’t surprised by this. If your contract is one for a professional, knowledge worker type role and you’re paid according to your results or output, then the company wants you to focus all of your working attention on it. If you’ve got mental capacity to do more work, do it for them, get rewarded accordingly.