Because khalid رضي الله عنه was told to not kill children or slaves. And there should have been qisaas at the least. (Unless she was from an enemy land with no treaty iirc).
Also why was there a misunderstanding? Did women go to battle? I know Aisha رضي الله عنه went to battle but was it really that common?