When it comes to exam time, you wont have ChatGPT to help you and at that point the teacher will have a pretty good idea as to who needed to do the HW but either chose not to or cheated to complete it.