There is a verse in Quran saying God created humans to worship Him.
But, God does not need our worship. Does it mean worship is a middle goal to humans so that they be trained for a higher goal?
What is the final goal of creating humans and nature and all things?
The verse is:
And I did not create the jinn and mankind except to worship Me.
Your vote on this answer has already been received
God wants it because He is the greatest. It is appropriate for the wishes of both those who are small and those who are big that the young should show respect to the old. The fact that human beings have needed to worship superhuman forces since the time of Hazrat Adam even when they deviated is clear evidence for that reality. To worship is an indication of both respect and love. It is quite natural and sensible for God, who creates people out of nothing, who gives them thousands of bounties, who loves them and who shows His love through revelation and inspiration, to ask His slaves to worship Him, which is a manifestation of both love and respect