The key to lawyers and doctors losing their licenses to practice is that they have professional bodies that will police/enforce the rules. However, they also have a monopoly to provide those services.
I suspect corporations don't want limit software engineers to those with licenses only as there would be less of them available and costs of said licensed software engineers would increase.