Why would someone go to all the trouble of making a botnet, then DDoSing GitHub ffs.
Why not? They likely already have a botnet, they didn't make it to DDoS GitHub specifically. Maybe they were annoyed with someone who was using GitHub, or they wanted to prove a point, who knows. All in all, the reason is because they can.