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.