How did the pharaoh get so rich?

He was running a huge pyramid scheme.