That is part of the DMCA (the act, not the "DMCA notice" often shortened "DMCA"). In exchange for not being liable for the copyright infringement ("safe harbor"), the service provider (here YouTube) has to act on notices right away. The user files a counterclaim if that was wrong.
In short, it's not YouTube's (or GitHub's, etc) call, this is part of the agreement with copyright holders (the DMCA copyright law).
Don't take that as an endorsement though, I hate the system as much as you do.