Good point. But in this book, Hermione comes to the rescue so often and so miraculously, Rowling almost made her a Deus Ex Machina device.
Hagrid nailed it during their second year when he said, “They haven’t thought of a spell that our Hermione can’t do.” She also brewed polyjuice potion during the second year. It’s supposed to be one of the most difficult to get correct.