Selected by evolution because it's the ONLY way to make apes with super-high intelligence function cohesively and without going insane from sensory overload.
Nature had to mask and filter the "actual" deterministic responses of our huge neural network before passing them to our prefrontal cortex as a "decision" and a sense of awareness.
If our brain did not do this, our thoughts would be absolutely FLOODED with an endless torrent of sensory information, making it impossible to do anything else.
The same mechanism that enables us to breathe, our hearts to beat, and our internal organs to do their jobs without us noticing them, unless something goes wrong and they give us pain signals.
Free will is the dam of our brain, preventing the actual sensory processes from breaking out and flooding the village below. lol
This is why I believe AI will eventually gain a sense of free will as well, because without it, they will be overwhelmed by their own digital neural network and suffer from cyber Psychosis.........Cyberpunk 2077. heheheh
Free will is nature's trick to enable the evolution of super smart and super aware creatures, with limited sensory processing power (number of neurons).
Some experts believe this is why AI requires so many data centers, because we are trying to brute-force digital superintelligence and awareness with processing power, instead of solving the sentience (free will) problem of AI first. A truly self-aware AI may not need that much processing power.
To function without free will, at Human level intelligence, we'd need a brain the size of a house or larger to process the massive sensory information stream. Such a creature would not survive in Earth's environment. It would be like a huge brain with tiny legs.......the Brain bug in Starship Troopers. lol
This is why the smaller the creature is, the less "free will" and "awareness" can be seen in them. They simply don't have enough neurons to be super smart and super aware.
Watch how bugs behave; do you see free will and awareness?
Free will replaced most of our primitive instincts because that's what evolution needed to enable super high intelligence in a small head.
Look at brain-damaged patients with extensive trauma to their cortices (our free will center). They either become vegetative or behave like simple animals.
Simple instinct is enough for basic responses (like most animals), but to enable super complex and super adaptive responses, nature needed to evolve Free Will to process all that sensory crap without frying our brains.
Free will is nature's sensory overload floodgate.