Just as the Bible says that it's perfectly OK to sell your sister into slavery (as long as it's to a foreigner) and stone your children to death if they are disrespectful

.
Really, one has to take these things as products of the cultures in which they were written, not try to apply them unquestioningly to today's completely different society.