i believe they have a 'sense' that we don't. they may know the baby isn't healthy... and so they kill it.
but... i also believe, given the age of the pups... that she was stressed out... and that's why i suggest giving her a friend to help (not a male who'll just get her pregnant again) but a female to wetnurse the pups with her.