I half expected you to say that you thought there was nothing wrong with it at all!
That's not rational.
Ultimately though, regardless of what anyone then (or now) thought about it, it would ultimately have to be just, because it was given by God, right?
No. That's not rational either.
Does it trouble you that God commanded such abhorrent laws and that they were once considered just and right?
Not as much as if would if these laws prohibited actions which were necessary for the preservation of life, altruistic, virtually unavoidable, or accidental. In Western countries it is typical for people to be imprisoned for years (even decades), simply for moving items from one room to another, even if these actions are altruistic. This seems grossly unjust to me, but the vast majority of people have no problem with it at all.