The switch OS doesn't measure the actual remaining battery capacity. It keeps track of a percentage and adjust the percentage based on how much you use the switch or charge the switch.
So when you boot into Linux it uses that battery power but the switch OS isn't decreasing that percentage...