I don’t think it explains it; it certainly doesn’t excuse it… But oftentimes depravity is projection. Those murderers probably felt deep down that they lived their own lives in fear, felt they had no control over their environment/suffering, etc.
Then they see a child crying and they think “you think this is bad, let me show you my inner hell. I’ll show you what bad is.”