The answer is that their confidence was actuallh in God, not in their limited understanding of what they thought he would do. They had inner assurance that God would rescue them. However, they were not so arrogant as to be sure they were "reading God right." They knew that God was under no obligation to operate according to their limited wisdom.
Timothy J. Keller
suffering, theology