God could have created robots, but He didn't, He created people with the freedom to choose. He created angels with the freedom to choose too. But once the angels chose evil, there was no second chance, no Savior for them who would pay the price for their mistakes. Maybe that is why the Devil is so jealous of people.