Armadillo was started way before ZeniMax acquired id (thus easy to foresee needing a documented exclusion), whereas Oculus VR wasn't even a thing until a few years after that was a done deal.
Obviously, without seeing Carmack's contract, it's impossible to ascertain if he did agree that all work, in our out of the office, including ideas, belonged to ZeniMax.
And even then, the definition of work product could be argued in all kinds of ways. Is it only committed code, does it also include research and sketches. How does it extend to what is shared with others, etc.
Carmack has a good lawyer, I'm sure. Hopefully that lawyer also looked over his ZeniMax contract.
This is a common mistake programmers make when dealing with lawyers and other corporate types who stand to gain money from being huge unreasonable assholes.