Short answer
Frequent lucid dreams may relate to attention, better dream recall, and personal differences. Research on specific triggers is limited, so the explanations here are tentative.
What spontaneous lucidity is
Spontaneous lucidity means becoming aware that you are dreaming without trying to do so through a technique. Many people have these moments from time to time. Others notice them more often. Both patterns are common.
Habits of awareness
Attention and self-reflection may matter. Some people who practice reality checks or mindfulness report more lucid dreams, and the habit of questioning whether you are awake may carry into sleep.
Research points in a similar direction. A 2015 study by Julian Mutz and Amir-Homayoun Javadi, summarized on Wikipedia, found that people who had practiced meditation for a long time tended to have more lucid dreams. A 2019 study by Baird and colleagues found no increase in lucid dream frequency after eight weeks of mindfulness training with people who had not meditated before. So a long meditation practice may be linked to lucidity, but a short course may not change much.
Better dream recall and noticing dream signs
You can only notice lucidity if you remember your dreams. Keeping a dream journal can make you more aware of recurring images, people, or situations, sometimes called dream signs. Once you spot a dream sign, you may be more likely to notice it inside a dream.
This may explain why some people seem to have lucid dreams more often after they start paying close attention to their dreams. It is a plausible explanation, not a proven one.
Nightmares as a possible trigger
Some lucid dreamers say nightmares prompt them to realize they are dreaming. A study by Schredl and Erlacher from 2004, cited on Wikipedia, found a moderate link between how often people had nightmares and how often they had lucid dreams. That is a correlation, so it does not show that nightmares cause lucidity.
If nightmares are frequent or upsetting, read whether lucid dreaming can help with nightmares.
Individual differences
People differ in how often they have lucid dreams. Wikipedia notes that earlier studies found lucid dreaming more common among adolescents than adults. Research has also linked frequent lucid dreaming with stronger connections between frontal and parietal brain areas, in a study by Baird and colleagues from 2018.
These findings describe patterns across groups. They do not tell you why you personally have more lucid dreams.
When to talk to a clinician
Lucid dreams on their own are usually not a concern. Talk to a clinician if they come with frightening sleep paralysis, serious daytime sleepiness, or distress that affects your daily life.
Where to go next
For the different ways lucidity tends to begin, see the types of lucid dreams. If your dream recall is low and you want to improve it, read how to dream more. For the basics, see the pillar article on lucid dreaming.