To understand the event "The teacher gave the class homework.  All the students groaned.", it is important to know that People groan when they don't want to do tedious things.