Answer:
She earned that nickname by her talkative and perky attitude.
Her teacher gave her that name because she talked a lot in class. As a punishment he made her write an essay with the title "Quack, Quack, Quack Went Mrs. Quackenbush". It turned out to be so good that he read it out loud to the whole class.