Actual professionals, [that is, doctors, lawyers, accountants, engineers (real ones, not the phony software kind)] have obligations to their professional standards and ethics that supersede obligations to their employer.
A good accountant won't cook your books for you (unless he's crooked), but the world's best code monkeys are happy to write up whatever invasive spyware adtech or emissions standards-cheating software you ask for, as long as they keep getting their peanuts.