Harry is surprised by the side effects of having saved Ginny in the chamber. Turns out people he trusted were lying to him. There were many people who wouldn't have done what they did if they could forsee the consequences of their actions and Harry's reactions.