It's because of the hardware. For mobile Apple is competitive, for desktop applications they don't even show up on most benchmarks next to AMD/Nvidia hardware.
For example, you have to scroll beneath last-gen laptop GPUs before you can find any Apple hardware on the OpenCL charts: https://browser.geekbench.com/opencl-benchmarks
That's also because of software. Apple deprecated OpenCL in MacOS eight years ago. In productivity software with solid Metal implementations, like Blender, the M4 Max is on par with the top of Nvidia's (mobile) 5xxx line, except with much more VRAM.