As with all corporations they have to comply with local laws. If chinese govt demands apple operating there has to comply with chinese laws for chinese customers. Apple has to comply with US laws for US customers.
Like us concealed carry permit means nothing in UK. UK laws apply. I know its a hard concept but a bit of effort it can be understood.