As Americans, we read the word "slavery" through the lens of our own experience - and very harsh experience it is. Slavery as practiced in Western hemisphere until 1863 was one of the most brutal forms of this social institution.
When we read ancient texts, it is important to remember that translators are often perplexed when deciding to render a given vocabulary word into English as "slave" or "servant" - the difference to our eyes being great, but in earlier eras of history, a much more subtle distinction.
In some ancient cultures (notably Rome), these people were given authority within households and businesses; they were educated, wrote books, and made important decisions.
In certain phases of Egyptian and Babylonian history, slavery was more cruel, and slaves were treated like working animals. Moses took a great step forward when he limited slavery to seven years. Prior to that, slavery was lifelong, and, in a majority of cases, it would continue to be lifelong in all societies except the Hebrews.
So read carefully when you see words like "slave" or "servant" and realize that a variety of circumstances can hide behind these terms.