My headcanon is that she realized how much Hook really meant to her. It surprised her just how much she cared that his life was in danger, and how much she cared that now, he was safe. And dealing with her disbelief, maybe, because she knew that at that moment, she chose him.