iPadOS still a single user OS as of today. I honestly think the moment it can run apps it the same unrestricted manner macOS can then the battery life would take a huge hit.
It's not like the MacBooks have poor battery life? I'd be perfectly happy with an iPad that could run my IDE and execute code, even if it meant a few hours less battery.