I notice your link states that female Hebrew slaves were to be released, like the male slaves, after six years’ service.
In flat contradiction to: “If a man sells his daughter to be a female servant, she shall not go out as the male servants do.”
The exact Hebrew is frequently different from smooth English translations (such as the word ‘eved’/slave itself). I am not sure of the resolution to the statements here, other than a Jewish legal system will follow the rulings of traditional rabbis who are expert on the topic.
That’s not a contradiction, but a clarifying exception. A man who willfully sells his own daughter sentences her to a life of slavery, presumably to discourage a practice that was very common in the ANE without expressly forbidding it. I suppose the realities of ANE existence meant that it was sometimes necessary for the survival of the family in difficult times, but not to be encouraged. But far be it from me to divine the intent of the almighty.