God’s purpose for us is not to be happy on our own terms. One could be temporary happy in sin and yet thus ultimately kill themselves through obeying it.
The focus is different - not happiness for its own sake but happiness of knowing God .
Therefore God’s purpose for us is to have a high quality of communion with Him here on earth (with all its spiritual and material benefits), which will continue, spiritually, forever in heaven.
Inspiring