Why is “the whole heap for 5,000” different from “500 per qafiz”?

Kitab al-Buyu: Grain Sales, Bulk Heaps, Qafiz and Unit Prices