When we live a life that is focused on all the things of this world; We create a separation between us and our God. When we separate ourselves from God, we turn off the flow of wisdom that comes directly from Him.
Wisdom is the treasure that we should pursue.
If we seek HIS wisdom, then the true riches of this life, and the life to come, will follow closely behind.