I think there is a deeper truth behind this observation. At least we know that smarter people often have larger brains, better control of alpha-rhythm, better fronto-parietal gamma synchronization, longer dendrites.
It is plausible to hypothesize that all these differences add up to larger representational capacity and better separation of concept representations, which subjectively could feel like less brain fog while performing demanding mental tasks.