At the risk of being an Apple apologist, their manufacturing is effectively held hostage by China. Yes Apple is taking the "make more profit" choice, but the alternative is pretty devastating to the company. Long term, Apple needs to diversify their manufacturing footprint.
(Note that I still think Apple would adhere to the CCP's requests/laws just to be able to sell in China. China would ban Apple products if they believed Apple was not cooperative.)