That could just be due to numbers, since Github has way more people. The low barrier of entry to Github probably also contributes, since it attracts younger/less mature people. The social media features might also cause people to treat it like reddit or twitter, where being an asshole for no reason is normal behavior.