Sure, it's all Darwin, but userspace matters a lot - you can do lots of things on MacOS that you can't do on iOS (JIT, arbitrary web engines, assorted emulators, pop a root shell and load arbitrary kernel modules)
And that helps i.e. Docker how?
iOS XNU is compiled with different features than macOS XNU.