The battery level is just a representation of the voltage in a battery.
When a battery is just sitting there and not doing much, just lighting up the display, it has a voltage.
When you ask the battery to do some heavy lifting, like heating up your atty, it sends out all the electrics it can...