They were distressed because they were confident. They came there, and were confounded.
They were confounded because they had hoped; they came thither, and were ashamed.