>
you're not allowed to do your own electrical work unless you get a temporary license and pass inspectionThat's heavily dependent on jurisdiction. In many places you can do your own electrical work without any kind of license (you can pull a permit by simply acknowledging that you are responsible for the work), and the inspection does not adequately cover all the safety issues that could arise.
For minor -- but still potentially dangerous -- things like replacing an outlet or light switch (or, hell, even a mains-connected light fixture), you don't need to do any of that.
> I don't think there's anything in my house that is as dangerous as a large lithium battery
For some reason we accept that many of us have, either in our basement or in a closet, one or more devices that continuously set a fossil fuel on fire in order to heat our homes, heat water, or dry clothing. Many of us even have a device that exposes that fire to the open air in order to cook food. Those devices do have some impressive safety features (well, except for the gas stove, oof), but they also have some pretty impressive failure modes. Not to mention how bad it is for your health to be inhaling the particles a gas stove spews into the air, even with an exhaust fan.
I'm not pointing this out in order to claim that lithium-based batteries are safe or are no big deal. But we accept all sorts of risk in our homes already, and batteries don't strike me as meaningfully different.