I would love for you to show me any novel theorems you've proven or publishable experiments you've run during your career as a swe.
I haven't, because I'm not an SWE. I'm sure some SWE has, but I can't point to them as an example. But, even in the extremely unlikely case that that's never happened, the reason such a person isn't a mathematician or scientist is because they didn't do math or science, not directly because of their job.
Doing math or science is the criterion for being a mathematician or scientist, not who employs you how.