I'd be interested to see the logic applied to other jobs. What's your job using this kind of reductionist logic? Are there any jobs that aren't "protect the company" in some way?
And I'm a software engineer, I solve business problems with code. If I decide to to write some code that doesn't help the company I would probably be fired or at least put on a PIP
Perhaps you should ask someone in your HR department to tell you more about their mission as I doubt they'd share these views.
That's all you do