The wisdom behind the creation of Jinn and human beings is that they recognize their Lord and worship Him Alone, though Allah is in no need of worship by anyone.