Harry felt he owed her a life debt and when it came to Narcissa and Draco to stand trial for their contributions to the War, Harry had persuaded Hermione to help any way they could. As there was no denying what the Malfoy family had done (their house did host the snake-like psychopath after all) all Harry and Hermione could do was provide character witnesses.