Teachers are required to give a certain amount of work, but they're allowed to go over it if they have to, and sometimes they have to assign homework to fill in the rest of required work. They can't just let everyone do nothing or else they could get fired.