ARM did it, not Apple.
Apple designed the chip, and ARM designed the platform and instructions for them to build with.
Apple designs the chips:
https://en.wikipedia.org/wiki/Apple-designed_processors
Specifically,
Apple has an ARM "architectural license", which is for
companies "designing their own CPU cores using the ARM
instruction sets. These cores must comply fully with the
ARM architecture. Companies that have designed cores that
implement an ARM architecture include Apple, AppliedMicro,
Broadcom, Cavium (now: Marvell), Nvidia, Qualcomm, and
Samsung Electronics.
https://en.wikipedia.org/wiki/ARM_architecture#LicensingARM designed that JS-optimized instruction. Apple just follows (and it has to) ARM specification in Apple’s own way.
Don’t confuse between ISA design and its chip implementation design.