Answer:
Allah the Exalted says:
«وَأَنَّا ظَنَنَّا أَن لَّن تَقُولَ الْإِنسُ وَالْجِنُّ عَلَى اللَّهِ كَذِبًا ﴿٥﴾ وَأَنَّهُ كَانَ رِجَالٌ مِّنَ الْإِنسِ يَعُوذُونَ بِرِجَالٍ مِّنَ الْجِنِّ فَزَادُوهُمْ رَهَقًا ﴿٦﴾ »
“And that indeed we thought that neither mankind nor the jinn would ever speak any lie against Allah. And that indeed, it was the case that some men among mankind used to seek refuge with some men among the jinn, so they increased them in transgression.”
The jinn used to think that they had superiority over mankind, because when humans stopped in a valley or a frightening place (a forest and the like), they would seek refuge with us. This was as the Arabs of the Jahiliyyah used to do: they would seek refuge with the chief jinn of that place so that he would not cause them any harm. For this reason, the audacity of the jinn towards them increased.