Think of the CAPACITY (mAh) as a cars gas tank. You buy a used car, you don’t know how much the gas tank can hold. To get an accurate measurement, you would have to DRAIN the tank, close to EMPTY, then when you FILL IT, you know how much it really holds. Empty on most electronic battery devices is when the voltage gets to a certain VOLTAGE, that is preset in the device by the device manufacturer. This is usually about 3-3.3 volts, you get a LOW BATTERY WARNING, then the device shuts down, and you need to REFILL - RECHARGE them.
For the battery manufacturer to claim the MOST amount of mAh, same as claiming their battery has the BIGGEST GAS TANK, they DISCHARGE in their own tests down to 2.5 volts, something you can do with advanced chargers to. You can see this in battery specification sheets. Since they charge LOWER, they can HOLD more, but that’s for ADVERTISING, as our devices never get down to 2.5 volts, as 3-3.3 volts is a SAFTY OVERHEAD.