Earlier quoted context omitted.
The M1 and M2 were beating the best-in-class i7 when they were relased IIRC
Apple took the ARM base design (they licensed it), and then they modified and tweaked it. You get the ARM ISA, and compilers that work for ARM will compile to Apple Silicon. It's just that the actual hardware you get, is better than the base design, and therefore beats other ARM processors in benchmarks.
More likely it was derived from PWRficient, or a clean sheet design that took lessons from it.