Egypt had slaves, like almost all ancient societies. But it was mostly free peasants who did the work, working when there was nothing much to do on the land.
As far as we can tell, they also thought they were improving their chances of going to heaven rather than hell. (The idea seems to have begun in Egypt.)