Stupid student

Why did the student eat his homework?

His teacher said it was a peace of cake.