Signal is one example. Their values are simply not compatible with what the Chinese government wants (local data storage, key access, etc.). Instead of complying and putting their users' privacy at risk, they accepted the ban.
Google, out of all companies, also decided to partially walk away from the Chinese market in 2010 over censorship concerns [1].
Nobody is forcing Apple to do business in China, or the UK. They actively choose to do so, and because of that also put themselves in a position where they have to comply with these laws, presumably because it makes them more money.
[1] https://www.nytimes.com/2010/03/23/technology/23google.html
Google also chooses to be a US company even thought the US is supporting a genocide and is doing an illegal war against a foreign country (again)
You could argue Signal is the most "moral" here, but even then they don't really allow self-hosted backends and refuse to open-source their setup
Signal responds to warrants with all the the data they keep.
ProtonMail / ProtonVPN responds to the vast majority of warrants with the data they keep.
Apple iCloud always responded to iCloud warrants with whatever data they had (eg. If the user didn’t enable encryption). They shouldn’t have removed end-to-end encryption for the UK, but they have thousands of employees in that country and millions of customers.
Sometimes it’s not the company that is the problem, but the country / legislators.