There are bad people because of free will.
God wants people to love him. God made people free because you can only love if you are free to do so. But being free means that people can also choose not to love God, choose not to obey his word, choose to do bad things.
This situation will not last forever.