Punishment For A Child Committing Adultery
We know from the Quran that God considers excuses. He announced half punishment for slave girls who were kept safe from committing adultery and still they committed Zina. This is because they did not have adequate education and environment. see tje verse: 4: 25 فَإِذَا أُحْصِنَّ فَإِنْ أَتَيْنَ بِفَاحِشَةٍ فَعَلَيْهِنَّ نِصْفُ مَا عَلَى الْمُحْصَنَاتِ مِنَ الْعَذَابِ The children have more excuses for that. Children are not addressees of Shariah until they gain the sensibility to understand what they are responsible for and why.