I’m fine with zoning, etc, but some other requirements are excessive.
Ideally, I’d support requiring inspections (but not necessarily licensed installers) for things like modifying gas plumbing beyond the flex hose to the stove.
If the person doing the work is bonded and can pass inspection, union-driven licensing requirements tend to be excessive.