Egypt represents slavery to sin. Absolutely no human effort was called for. But it was another story after they crossed the Jordan. The Hebrews had to arm themselves to the teeth and fight with all they had to conquer the land of milk and honey. Yes, God did help them, but only as long as they gave all they had to the battle.
Salvation is free.
There is no violence required in getting saved, but it takes all we have to press into the kingdom. Now, the treasure is hid. But, once the man finds the treasure, he can't just pick it up, take it home, and add it to all of his other valuables. It will stay there as long we are forsaking all, every day of our lives. That is what we are born-again for.