Jonah had to learn humility and dependence upon God. Being stuck in the belly of the fish was the only way he'd learn.