Are you actually sure about this? Everywhere I've ever checked, it's been legal for a person to work on the wiring in their own home, without needing to be licensed.
Ridiculous. Needless to say, I’ve done plenty of electrical work over the years. Would have loved to have some of it inspected, but that wasn’t allowed.
My other favorite example is gun background checks. If I want to sell a gun to a guy in my neighborhood that I don't really know, there's no practical way to do it such that he gets the background check you get when you buy from a dealer. Completely ridiculous.
In the coastal big cities where I've lived, you cannot pull electrical permits without a license. And you cannot do electrical work without a permit.
Same for plumbing, which is even less justifiable, I think.
On the east coast (New England), many cities and towns don't even make an exception for owner-occupied, detached SFH buildings. Thou absolutely shalt not.
My favorite permitting office experience was in another, shall we say lower-density, part of the country. I wanted to put a subpanel in the barn for a workshop. "Would I need a license for that?" The guy behind the desk asked me how big of a panel I wanted, what size and type of wire I was going to use, distance from the existing service, size of existing service.
He was satisfied with my answers and said "Nah. You're good. Give me a call if you want me to swing by and take a look when you're done, but it sounds like you're fine.". I was in and out of there in like three minutes.