Battery Voltage
The higher the voltage, typically, the more cells that are in the battery pack. So when comparing a 40V pack to a 20V pack, in most cases the 40V pack will have more cells which means more power capacity available.