The prosecution successfully argued against the 'defense of infancy' based on things the kids said themselves admitted they had planned to do to the victim.
They don't have full capabilities yet. Their ability to plan is lower and their impulse control too. There is not way for them to enact years long plan and build networks of supporters before acting.
While I agree that the scope of a twelve year old's power is limited, children can be unimaginably cruel.