That is because they preferred the worldly life over the Hereafter and that Allah does not guide the disbelieving people.