Just like in Windows and WSL2, Docker support in MacOS relies on a virtual machine running somewhere there. It probably works fine for most things since Apple Silicon has been out for more than a year already and there's plenty of demand for this. The whole experience is 2nd rate on both of these platforms compared to how it would be on Linux.