This is because at the time the bible was written children (and women) were seen as chattels, possessions. Expendable assets if you like.
That's why Job loses his livestock, possessions and his children.
That's why it's ok for a husband to take his newlywed wife, if she hasn't shown proof of virginity, and have her publicly stoned to death.
Thank goodness that in this day and age our morality and sensibilities have developed way beyond that vicious bronze age book.