Yes, and it is a legitimate fear. Someone with access to Apple's IP may unintentionally or even inadvertently leak that IP in an open-source project. Say you developed a clever new optimization on the job at Apple. You use the same trick in your open source code, thinking it's no big deal, it's just one small piece of code. But that code is now the property of Apple, and they may consider it more valuable than you do. It may enable, for instance, faster encryption with one of their custom chips. That's an edge they have in the marlet that they might lose were it not for exclusive use of that bit of code. They could lose millions -- meaning they could sue you for millions. In a court of law, it is sufficient to prove that the defendant had access to the infringed work and that their work is substantially similar to the infringed work in order to have a case for copyright infringement.
Rather than risk that sort of loss, Apple and many other companies include clauses forbidding employees from working on outside software projects even in their spare time as standard boilerplate in their employment contracts. If you don't want to play by those rules, don't work for the company. They can find plenty of top-tier engineers who will gladly play by those rules.