that is because they love the life of this world more than the hereafter and allah does not guide those who are ungrateful to allah for his favours.
ذلك بأنهم استحبوا الحياة الدنيا على الآخرة وأن الله لا يهدي القوم الكافرين