this happened because allah is not one to change the favour which he has bestowed upon a people until they have changed their attitude. surely allah is allhearing allknowing.
ذلك بأن الله لم يك مغيرا نعمة أنعمها على قوم حتى يغيروا ما بأنفسهم وأن الله سميع عليم