The answer to 'why is my recessed lighting hot to touch' is that recessed lights can get hot due to the internal components and the heat they generate during operation. This is a normal and expected behavior for most types of recessed lighting. The lights contain a transformer or driver that converts the electrical current, and this generates heat that can make the light fixture feel warm or hot to the touch.
However, if the lights are excessively hot or the heat is concerning, it could indicate an underlying issue that needs to be addressed. Potential causes include improper insulation around the fixture, a malfunctioning transformer or driver, or the lights being left on for extended periods. In these cases, it's best to have a licensed electrician inspect the lights and make any necessary repairs.