It is fair. If you don't do your homework, even though you had Cain Time, the morning and after school, you should be punished.
Students should be punished if they aren't willing to put in effort and do their work. 24 hours is more than enough time to complete whatever work that they have. In real life, if you don't finish a job at work you get fired. There are consequences for not doing work.