But by that definition, soldiering can never be a "profession" as a soldier is always regulated by the government they serve, and there is no professional association regulating mercenaries. But I would be very hesitant to suggest that the US Marines are not professional soldiers. They are. The definitions are messy.
As they should. Industries should be self regulating. While these industries form their own standards of practice they do so with the blessing of government, typically under state government supervision/authorization in the US, and are held to account by government. A lawyer or doctor who violates their standards of practice could very likely be guilty of criminal law and find themselves in prison depending upon the violation even when no other criminal actions occurred.
Even bus drivers are held to higher standards of practice than software developers.