وما خلقت الجن والانس الا ليعبدون. Maarif

This is the view of Dahhak, Sufyan Thawri and others
Allah, the Pure and Exalted, knows best Answer to the second question is that bringing any creation into being for the purpose of worship does not necessarily imply that they are unfit for other functions of life

وَمَا خَلَقْتُ الْجِنَّ وَالْإِنسَ إِلَّا لِيَعْبُدُونِ

Tafsir Mazhari gives a plain and simple explication of this verse: Allah has equipped every jinn and man with the innate capacity to worship.

15
آیه 56 سوره ذاریات
Some say that this verse pertains to the believers only, that is, only believing jinn and believing mankind are created for worship and for no other task
المراه خلقت متعه للرجل
Scholars have made different approaches to solve these problems
معنى العبادة والمراد من قوله تعالى: وما خلقت الجن والإنس إلا ليعبدون
Some of them exercised their God-given free will correctly and chose to worship Him, but others used their God-given free will incorrectly and deviated from worshipping Him
[ 2] The purpose of jinn's and man's creation has been restricted to the worship of Allah whereas there are many other underlying reasons and benefits in their creation It is obvious that the believers are more or less steadfast to worship
This version supports the view that the verse is only in connection with the believers Some use the capacity rightly and succeed, while others employ it wrongly in sinning and fulfilling their base emotions, and thus destroy it

القرآن الكريم

Just as this Tradition tells us that every man is born with the natural capacity for Islam and true faith, but his parents adulterate and destroy that capacity, and put him on to the ways of disbelief, in the same way the phrase 'except that they should worship Me' could mean that every member of jinn and mankind has the natural, inborn capacity to worship.

القرآن الكريم
This apparently may raise two questions: [ 1] If Allah has created a creature for a particular task, and it is His will that it should perform that task, rationally it is impossible for it to deviate from that task, because doing anything contrary to the will of Allah is inconceivable
معنى العبادة والمراد من قوله تعالى: وما خلقت الجن والإنس إلا ليعبدون
" According to the majority of the scholars, fitrah here refers to the religion of Islam
المراه خلقت متعه للرجل