This page is theological context. It goes beyond the site's secular sources. The main answer uses secular sources only.
If God gave the Ten Commandments, why do they ban coveting and graven images but not slavery, rape, child abuse or torture?
The skeptic’s reading of the Ten Commandments is fair so far: Exodus 20 lists ten commands, and rape, child abuse, torture and slave-owning are not among them. Jewish and Christian readers have mostly not treated the ten as a complete code, and they disagree about what the ten are instead.
The Bible calls the ten a covenant. Exodus 34:28 says 'he wrote on the tablets the words of the covenant, the ten commandments', and Deuteronomy 4:13 says 'He declared to you his covenant, which he charged you to observe, that is, the ten commandments'. Exodus 24:7 mentions another document: 'Then he took the book of the covenant and read it in the hearing of the people'.
Philo of Alexandria, a first-century Jewish philosopher, writes that 'the ten commandments are the heads of all the particular and special laws which are recorded throughout all the history of the giving of the law' (Yonge translation). He also says God 'appointed no punishment for those who should violate them, as lawgivers usually do'. On that reading the ten are headings and the detail lies in the particular laws; Philo says God left punishment to his subordinate ministers. Rashi’s commentary on Exodus 24:12 says 'All the six hundred and thirteen commandments are implicitly contained in the Ten Commandments'. The Talmud (Makkot 23b) counts 613 commandments given to Moses (paraphrase; CC BY-NC English, not copied).
The Catholic Catechism treats the ten as covenant text: the ten 'contain the terms of the covenant concluded between God and his people' (2058), and 'The Commandments take on their full meaning within the covenant' (2061). The Westminster Confession calls the ten 'a perfect rule of righteousness' (19.2), and says the judicial laws given to Israel 'expired together with the state of that people, not obliging any other, now, further than the general equity thereof may require' (19.4). On the Westminster view, the case laws on kidnapping or rape would not bind Christians today (our reading of its judicial laws).
Neither reading removes the troubling texts conceded in the main answer, Exodus 21:20-21 and Deuteronomy 22:28-29. They concern what the ten were for, not whether the case laws meet modern standards.