The answer to 'light fixture gets hot' is that a hot light fixture is often caused by an electrical problem or improper installation. This can be a serious fire hazard and should be addressed promptly.
Common causes include a faulty light bulb, a problem with the fixture's wiring or electrical connections, or the fixture being improperly sized for the space. Symptoms may include the fixture feeling very hot to the touch, dimming or flickering lights, and a burning smell. If the fixture is getting dangerously hot, turn off power to the circuit immediately and do not use the fixture until the issue is resolved.