Not that it particularly matters, but the pyramids weren't build by slaves [1]. They were built by skilled/payed workers and some corvée labour by farmers during the flooding of the Nile as a form of taxation.
Look at the poverty curve again. We basically have made zero progress on the poverty rate since the 1970s and actually are drifting higher. Yet from our technology base, and continuously rising productivity, it really should be easier than ever to ensure everyone has shelter and food, and yet homelessness is exploding right now too.
And even that wasn't the first society with inequality. It goes back far beyond recorded history.