Before epilepsy was understood to be a neurological condition, people believed it was caused by the moon, or by phlegm in the brain. They condemned seizures as evidence of witchcraft or demonic possession, and killed or castrated sufferers to prevent them from passing tainted blood to a new generation.
It’s a funny trick dopamine plays on brains, rewarding them and making them feel empowered in forming memories while informing them and coercing their later actions. The illusion of free will is almost, if not entirely, inescapable.
I remember watching my young son thinking he was playing a video game but it was just the demo. That’s the illusion of free will.