I guess dying a quick and painless death is better than slowly dying from being devoured by zombies or being used and tortured by humans who no longer have their humanity. Giving their children a quick death might be their way if protecting them as parents and killing themselves afterwards is a way that they will still be with them in the afterlife