It’s called self medication, and people have a sense of when something is wrong with them without a doctor telling them (or for that matter, believing them). Neurodivergent people know this especially well, since “all in your head” was the ultimate dismissal of medical complaints up until the last decade.
Might as well study hospitalizations for stimulants and tendency to impulsiveness and intrusive thoughts. People with ADHD have been self-medicating with stimulants since the trade routes brought tea and coffee ( and probably with beer and wine before that).
I maintain that the original motto for Coca Cola (with real coca leaves) was a nod to high functioning ADHD customers. The Thinking Man’s Drink. Most measurable gains in cognitive ability from mild stimulants are enjoyed by the neurodivergent. But if we are 10% of the human population, that’s a demographic even Apple could love.