Why does God sometimes allow defeat to teach dependence?