"What am I doing?" she asked herself, panicking. She didn’t understand this situation; she didn’t understand what had just happened. It was completely outside anything Hermione had ever experienced, and she was terrified by what they had done. By what could have happened if she hadn’t snapped to her senses when she had.