Fun fact! Not many (if any) slaves were used in building the pyramids, a majority of the people were akin to skilled contractors and construction workers.
You do realize that there were actual slaves under capitalism... Right? Plus, ancient Egypt wasn't really capitalist, it was focused around bartering and self-sufficiency