Of course people are going to ignore it if there's no force behind it.
The job interview for doctors is a 5-7 year residency under tight supervision of an attending physician: https://en.wikipedia.org/wiki/Residency_(medicine) . People do flunk or drop out as well, meaning they can never become a physician. There's nothing "easier" about that.
(I'm not sure whether I agree with the commentator that a SE license would be that helpful in practice.)
But I would argue it is way easier there. Building software has way more grey areas.
What grey areas are there for doctors?
A podcast I can choose to listen or not. A news site I can also evade. But any (internet) service people must use, should be ad free. Ideally all of society, but any regulation here will have a hard time in the real world.
The critical point is that the violators have to be punished more consistently then the demanded consistency of the ideals.
It is however just that very small minority of the population with highly psychopathic/narcissistic traits - those that, in pre-historic times, would have been kicked out swiftly of hunter & gatherer / small village communities because of their parasitic nature - that in bigger civilisations seem to thrive due to abstraction (distance/time of the effect of their actions) and obfuscation (PR) and instead unfortunately seem to rise to the top (CEOs, presidents, 'thought leaders' ...) to steer the world's overall economy and mindset - and steer it in the abyss.
Sometimes I think humanity was just not made to scale, and this aspect is one very large aspect of it.
Most likely the same kind of Machiavellian political maneuvering was effective in those groups as well.
"Software engineers shall act consistently with the public interest. In particular, software engineers shall, as appropriate:
1.01. Accept full responsibility for their own work.
1.02. Moderate the interests of the software engineer, the employer, the client and the users with the public good.
1.03. Approve software only if they have a well-founded belief that it is safe, meets specifications, passes appropriate tests, and does not diminish quality of life, diminish privacy or harm the environment. The ultimate effect of the work should be to the public good. ..."
From the IEEE, which also encompasses computer engineering, their first principle and its first few sub-items are:
"To uphold the highest standards of integrity, responsible behavior, and ethical conduct in professional activities.
1. to hold paramount the safety, health, and welfare of the public, to strive to comply with ethical design and sustainable development practices, to protect the privacy of others, and to disclose promptly factors that might endanger the public or the environment;
2. to improve the understanding by individuals and society of the capabilities and societal implications of conventional and emerging technologies, including intelligent systems; ..."