The people who built the Pyramids were not slaves, because who could afford to feed so many slaves? They were almost certainly farmers, who worked on the Pyramids during the winter, when there wasn't much to do on their farms, as a kind of tax. (And they certainly weren't the Jews, who aren't even supposed to have arrived in Egypt until the New Kingdom, a thousand years after the Pyramids were built.