'Eastern' religions - primarily Hinduism, also Buddhism, have it that life, the world, experience are Maya - illusion. The Western Platonic tradition has much the same core.
By my understanding; the purpose of experience is for us to grow towards divinity. and this is the 'function' of Life, or The World, of Creation.
It is true that this world of experience is not the world of primary reality; in the sense that it is a world of indirect communication rather than direct knowledge. Nonetheless, it is via this world of indirect communications that we are able to grow.
If the world of experience is discounted, is regarded as merely illusion, then Man cannot become A god; and this is indeed the case for Eastern religions - in which the purpose or hope is not to become A god, but to lose the Self and 'fuse' with the divine.
So, we are not created as gods, and therefore must become gods; and it is by experience, by Life in The World, that we may become gods (and there is no other way).
Therefore, despite that Life is not ultimate reality - and in that sense might correctly be termed Maya; Life is not merely illusion - and is that sense Life is Not Maya.
Life is (mostly) illusory in terms of knowledge, but (potentially) real in terms of function.