Why it is a bad idea to use GitHub for submiting school homework

It is common for school courses to require students to submit their homework using GitHub. However, this is usually a bad idea for several reasons, potentially including TOS violation, community degradation, and reliability.