"Freewill is an illusion."
Just about everything is an illusion manufactured by the brain. The brain is a fascinating thing. It is an organ that, like all other organs of the body, has one function - keep the whole body alive.
In the programming world there is an old saying - "Garbage in. Garbage out." Erroneous data will cause problems for us. Our brain is constantly looking for that which will benefit us. Bad data such as "You can live forever on paradise Earth" may have a negative effect. Sure, living forever in paradise sounds great to the brain. So the brain wants that. It wants it even if there are horrible costs and negative outcomes from trying to get it.
"Morality" is a function self preservation through mutual benefit. Humans are social creatures. Acting in such a way that benefits others rather than harms other furthers one's own wellbeing. Empathy is a product of evolution.
I have even seen data that shows electrical activity in the brain has action taking place prior to the brain being aware. The example given was electrical activity was measured in the portion of the brain that caused the subjects hand to move took place a fraction of a second before the portion of the brain that registers movement activated. In short - the hand before the brain realized the hand was moving.