The answer to 'why is my electrical wiring sparking' is that it is likely due to damaged or faulty wiring. Sparking in electrical wiring can be caused by a variety of issues, such as loose connections, worn insulation, overloaded circuits, or water damage. This is a serious problem that should be addressed immediately as it poses a fire hazard.
If you notice any sparking, flickering lights, or burning smells coming from your electrical system, it's important to shut off power to the affected area and call a licensed electrician right away. Attempting to fix the problem yourself can be extremely dangerous and should be avoided. Electrical work should only be performed by a qualified professional who can properly diagnose and repair the issue.