Most "DMCA enforcement" these days has little to do with what the actual copyright laws (including DMCA) are, and a lot to do with hosting companies just taking the path of least legal resistance.
Most of these repos probably broke no copyright law, but at the same time github is under no obligation to host any particular repo. So the path of least resistance is to err on the side of mass shuttering when receiving any complaint from any sizable corporate entity.
I'm not at all defending this stance, but it is what it is and if it bothers you you'll have to self-host.
The days of tech companies even considering doing The Right Thing and putting their neck out for their users in situations like this is long over.