Why did the student eat his homework?

The teacher told him it was a piece of cake.