In Harry Potter and the Prisoner of Azkaban, Hermione leaves the class of Professor Trelawney.
There was no mention of any consequences or punishments received by Hermione for walking out of the class mid-lesson. If there were no consequences then why didn't any other students leave the class?