Hermione's idea was not just a spur of the moment; like all boarding schools, Hogwarts allowed students to go home once a week. Only children like Harry Potter, who were not loved by anyone, would choose to stay at school. Hermione took this opportunity to go back and explain her thoughts to her parents.
It has to be said that Hermione's parents were quite open-minded. They greatly appreciated Hermione's idea and specifically reminded her — if she plans to give up becoming a wizard, she should do it as early as possible.
Hermione's parents had a point because the things learned at Hogwarts were of no use in modern society. This is also the main reason why wizards behaved no differently from illiterates coming out of deep mountains when they came to the civilized world.
