Not to claim any of these professions is perfect (far from it), but we have medical ethics; legal ethics; and even business ethics.
I know that legal ethics is both required as a course in law school and tested as part of licensure. Likewise, every day attorneys get delicensed for violating legal ethical standards. I presume that the same is true of medical school and licensing, and business school at least. (Though I always found "business ethics" to be a near contradiction in terms, and there is no ethical licensing requirement to practice business that I know of — and very little way to stop unethical business people from continuing to practice.)
We have coders/programmers who repeatedly refer to themselves as "architects" or "engineers". Yet there is no professional licensing requirement to practice programming, let alone ethical licensing or even training.
Is it any wonder that society ends up with huge data leaks; violations of personal privacy; surveillance states; and the like?
The world of software appears to be tolerant of slipshod work and blithe to its lack of professional standards — particularly ethical ones. It seems unable or unwilling to self-police. And one result is unethical conduct, this time at scale.
If software is eating the world and technology is so great, why haven't they solved their own ethical problems? (Tantamount to "doctor, heal thyself" — and I'm looking at you, Andreesen, Thiel, Musk, Palantir, Tesla, and your ilk.)
To pick a closer analogy, the professions that engineering in the traditional sense (electrical, mechanical, civil) also have professional licensure that includes ethical training in their licensing requirements. However, the goals of both the licensure and the ethical training are centered around "follow standard practices and processes to minimize deaths and avoid undermining the public trust in the competence of your field", not "don't slowly degrade the society around you through your decisions".