The reasoning for it is that male chickens are near worthless. They fight and injure themselves and others. They don't taste very good and most people won't eat them therefore they aren't worth the feed to fatten them up for slaughter.
The solution is to kill them as quickly and humanely as possible. The shredder looks bad but they die instantly, no pain, no suffering. Their bodies are then used in products such as dog and cat food.