Incandescent bulbs have an infrequent failure mode where they flicker just before going out for the final time. Probably some interaction between the magnetic field of the current flowing through the filament and the arc between ends of a broken filament flailing around. Once turned off they don't come on again. Individual LED laps can flicker at a few Hz, probably due to thermal effects and a bad bonding wire or die attach.
Fluorescent tubes, especially when new, can exhibit a kind of plasma instability that causes rotating patterns inside the tube.
External changes such as the momentary voltage drop caused by a fridge compressor, forced air blower, air conditioner or other load switching can cause visible flickering. Laser printers can cause cyclic flickering when active due to temperature control of the fusion roller.
Failing power supplies inside LED or fluorescent bulbs can cause flicker.
Some cheap decorative (eg. Xmas tree) LED bulb sets have half wave rectification and flicker at 25/30Hz.
Finally, a real possible cause for concern is flickering caused by a bad connection somewhere in the wiring. This could be caused by a loose connection like a wire nut or improperly tightened screw (aluminum wiring was a real issue). The heating caused by arcing is a cause of many electrical fires- to the point where arc detectors may be mandatory in some jurisdictions. You can sometimes hear a sizzle sound inside the box (or, worse, outside) coincident with the flickering. Sometimes it's in the fixture or lamp socket. If this is happening you should make sure it gets fixed promptly.