The answer to 'why is my recessed lighting flickering lights' is that there are several common causes, including a loose connection, a faulty dimmer switch, a problem with the light fixture, or issues with the electrical wiring. Flickering recessed lights can be caused by a loose connection in the light fixture, the junction box, or the wiring. This can happen over time as the connections work themselves loose. A faulty dimmer switch can also cause flickering, as can problems with the light fixture itself, such as a bad ballast or transformer. In some cases, issues with the electrical wiring, like a short circuit or voltage fluctuations, can lead to flickering recessed lights.
If the flickering is intermittent or you're unsure of the cause, it's best to call an electrician to diagnose and fix the problem. They can safely inspect the wiring, connections, and light fixtures to determine the root cause. However, if the flickering is consistent and you feel comfortable working with electrical components, you may be able to tighten connections or replace a dimmer switch yourself. Just be sure to turn off power to the circuit before doing any work.