They have own things to worry about that it might distract them from learning, or even in a bad mood. If it's in own work, even though they can't slack off, but I think they're very much aware of their environment thus as tired as they can be they wont get distract, but studying is a different thing, sure it doesn't cause harm, they might distract themselves from tiredness and end up wasting time in the school.