The teacher was preparing a difficult midterm for his students.
He gave them a curve, which bumped up the average to a B.
The teacher was surprised his students did well.
The teacher was feeling generous because he liked his students.