It sounds like you have no concept of the cultural context. The law specifically prohibited horrendous practices where a man in debt would sell off his daughter as an indentured servant to cover his debts. The Torah severely limits what he can do in these contexts.....and she is guaranteed food and clothing and even respectful treatment as a daughter.
If you had any understanding of cultural practices of the day, you would be amazed at the protections provided here at a time when they were unknown in the ancient world. And by not allowing her to be contracted out to foreigners, she is protected by the rights protected by the Torah among her native people. I'm not surprised that someone today would judge an ancient culture as inferior and primitive -- failing to realize that they could find just as many "cruel" practices in our culture. (We give the rapist free medical care and free legal help; the raped woman today gets neither and may get violated in the courtroom yet again.)
If you truly wish to understand these matters, there are textbooks as well as rabbinical materials. (And no, I am not Jewish but I am a professor of Religious Studies who regular helps students understand other cultures and religions. Fortunately, bigotry is less common in the classroom than on these forums.)
By the way, many of the Torah rules -- because of the constraints -- they not only discouraged abuses, they prevented the transactions entirely. But entire books have been written explaining that with the many examples of the Torah.
But your closing statements are certainly true. The Bible is an incredible moral guide and it stands in great contrast to any documents of the time -- or our time. We can only wish our society provided for better protection of individual rights.
By the way, this question has been answered in this forum hundreds of times. So if you really want to understand, the archives search engine will retrieve them for you.