this was because their messengers came to them with clear proof and they said can mere mortals provide us with guidance? they rejected the messengers and turned away. god does not need the worship of anyone. he is selfsufficient and praiseworthy.
ذلك بأنه كانت تأتيهم رسلهم بالبينات فقالوا أبشر يهدوننا فكفروا وتولوا واستغنى الله والله غني حميد