Apple is there because - like all multi-nationals - they see China’s brand of authoritarian capitalism as the future, and they are working hard to bring it to the USA. To them, China is not a competitor nor a military rival nor a human rights violator - it is simply a better reality for BigCorp than the one they operate in now.
Yep, big corporations sure do like their “partnership” with the CCP. They would like the same “partnership” with the uniparty here.