They were slaves, but the term slave often implies a moral evil. The slaves did not mind, in fact, they were happy they could do it. They were pleasing their God. They could go to heaven! Also, like I said before, when the pyramids were being built, it was impossible to farm, so the Courts of Egypt decided to give them food for sustinence if they built the pyramids.