The "free will" given to humans is trust (Amaanat) of Allah. If you misuse it, then you are supposed to be punished. The punishments described in koran is avoid humans from misusing the precious "free will". On the other hand havent you not read in koran the blessings of god on humans.