Why did the Prodigal Son Lose it All?

What was the real reason why the prodigal son lost everything he was given? And what’s the big truth Father God wants us to learn from his mistake, that will keep us safely on the path to fulfilling our dream destiny?