The stated reason any of this exists
One sentence answering the largest question.
وَمَا خَلَقْتُ ٱلْجِنَّ وَٱلْإِنسَ إِلَّا لِيَعْبُدُونِ
Wa mā khalaqtu-l-jinna wa-l-insa illā li-yaʿbudūn.
“And I did not create the jinn and mankind except to worship Me.”
Source
The Qur'an · 51:56
Qur'an
- Qur'anic text in the Uthmani script via Quran.com; translation: Saheeh International