To add on, Intel hasn't really kept up with its competitors. While Apple's A# series have gone to sub-10 nm processes while Intel's stuck at ~14 for years now. You could ask why not go to AMD? As others have said, using their own CPUs meaning more control on hardware, meaning better control of software, etc.