"I form the light, and create darkness: I make peace, and create evil: I the LORD do all these things." -- Isaiah 45:7
He killed most of them He said, because their hearts were evil and they did evil all the day long. Actually there's no telling how many perished in the flood or how many will perish in the future if they don't repent of their evil.