That's MacOS' fault, in fairness. MacOS does not support containers or the Linux abi in general so you're forced to run docker containers in a Linux VM, with all the CPU and I/O penalties.
Microsoft is a much more developer focused company IMHO. Still kinda astonishing how many developers choose MacOS.