Jeremiah 23:19Behold, a whirlwind of the LORD is gone forth in fury, even a grievous whirlwind: it shall fall grievously upon the head of the wicked
God could have made us robots, but we are his children and he wanted us to have "free will" to choose between good and evil.