Allah wants to guide everyone and therefore He has provided examples of every kind. This was done so that people can remember what happened to those who were the non-believers in the past.
“And We have certainly presented for the people in this Qur’an from every [kind of] example – that they might remember.” Quran (Surah Zumar, 27)
“Back to Quran and Islam page.”