Edit: also looking at the history here... They fought those bans too. I'm guessing, due to Indias importance to the IT industry, twitter was unable to pull out entirely, leaving their employees vulnerable if they didn't comply.
Not sure about turkey, but it looks like in this case, they are able to avoid censorship by pulling out entirely. Brazil is an inconsequential country.