That is not technically correct. There is no definition "as soon as they receive it". In fact the law calls for "expeditiously or remove" access. Courts confirmed many times that days or weeks is considered expeditious.
Github could've easily take the time and wait for SymPy to file counter notice which then allows Github to keep the content up up until courts say otherwise. Github instead elected to remove content immediately. By their choice.