Thank you for your question. Humans are created with a predisposition for good as well as evil. Their good is in their natural disposition (fitrah) and their evil stems from their commanding self (al-nafs al-ammarah). It is only through the disposition towards evil that the choice to follow what is right has value. Through the purification of the self, humans unveil the truth and through struggle they understand its value and nuances. So it is the Wisdom of God that dictates that humans should be endowed with the potential for good and evil and the choice to choose which path to take.
May you always be successful.