I'm sure some teachers may want to delete tests/assignments in the case of cheating(especially in the case of stuff like "take home tests").
Obviously you'd probably have it saved on your computer, but this may mitigate / in some instances stop it.
I'd still say its a bit sketchy, but it makes sense in context of the everyday CS student.