https://www.biblegateway.com/passage/?search=Matthew+25%3A31...
Implicit in your objection is that people are basically innocent and don't have any kind of consequences coming. That's an understandable opinion. It's just not what is stated in the Bible, either testament.
The above passage is, to apply it to my "upset parents" analogy, "Hey, you all are treating my family (humanity) like garbage. Enough is enough."
What about babies and "good people" that don't have it coming? Well, that's a theological rabbit hole I'll pass on for the moment, but the fundamental characterization of the God of the Bible is that he doesn't make mistakes, so there won't be a fair complaint when everything is said and done. His punishments fit the crimes and He doesn't punish people that don't deserve it.
Maybe you don't buy that. That's fair. But it's the ultimate question of the Bible: Do you trust God? Lots of people answer, "No." or even "Hell, no."
And he acts against the man who kicked his child. We call this normal; permitted, even recommended, by our common ideas of morality. But if he went on to commit a genocide against the man's family and every member of his tribe, young, old, and unborn, we call that "biblical". And that's why the old testament god is a genocidal maniac.