God's purpose in dealing with those who love Him is that they may gain Him to the fullest extent, surpassing the loss of all that they have other than Him, so that He might be expressed through them for the fulfillment of His purpose in creating man.
Job was a good man, expressing himself in his perfection, uprightness, and integrity, but God's intention was that Job would be reduced to nothing, be maintained in his existence, have God imparted into him, and become a God-man, expressing the divine attributes.
God's purpose in dealing with His holy people is that they would be emptied of everything and receive only God as their gain; the desire of God's heart is that they would gain Him in full as life, as the life supply, and as everything to their being.
When God's chosen and redeemed people experience Christ as wisdom to them from God and partake of and enjoy the riches of Christ, these riches will constitute them the church, through which the multifarious wisdom of God is made known to the angelic rulers and authorities in the heavenlies.