Which is sort of the point.
If God made creatures with free will, it’s because he didn’t want automatons. He wanted friends, not toys or machines.
Well... how did that work out?