Why does my MacBook use more energy when idle when plugged in?
When you disregard things such as dimming the display on battery and CPU-throttling - you're left with a quite obvious difference: charging the battery.
Even at 100% charge, you'll spend some extra energy keeping the battery charged while using the computer.