ZMK is built on top of Zephyr while QMK is built on top of ChibiOS - I'm not super familiar with the specifics but it's my understanding that the way ZMK/Zephyr handles bluetooth and matrix scanning is like an order of magnitude more energy efficient.
speculation, but I'm pretty confident: ZMK is MIT licensed and QMK is GPL