Exactly - Apple hardware is designed for its software, and vice versa. They get battery gains across the stack.
I remember when the M1 Macs first came out, an Apple engineer revealed they'd optimized the hardware so one specific low-level operation macOS does all the time was 5x faster than on Intel [0].