Hermione felt devastated for him because all his life he had looked at his magic as evil, turning against him, corrupting him. Once he was finally free of the imperius spell and the dark magic, his magic left him. He’d never get to experience his own powers without darkness tied to it.