There is no concept of creation in Eastern philosophy. Creation is a Judeo-Christian concept. Eastern philosophy says that that what we see as the universe is a 'projection'. What we see as the universe is a projection of God. You can't create something out of nothing, there is no logic in that. To see the universe as it truly is - God - is what is meant by enlightenment. The projection always was and always will be - it has no beginning and no end. It is eternal. You were born in a human body and your senses have been bombarding your mind since birth that what you senses present to your mind is real. The illusion is eternal, to escape the illusion is what is meant by enlightenment - to become aware of your true nature. When you achieve this you see the world as God, not what your senses have been mistakenly seeing it as. Control the mind, cut off the senses.
To ask why God created the world or why there is a projection is not a question that can be posed outside the sensual world. There is no why. "Why" only exists in the world of time space and causation. God is beyond the sensual world of time space and causation. For God to have a 'why' implies that God has a purpose in the creation - or projection - of the world, for God to have a purpose implies that God is not perfect. The syntax of your sentence is correct - Why did God create the world? - but good syntax does not imply good logic.