Yes, and did they take into account a backstabbing from the Chinese government (both national and local) and the stealing and then re-using of their IP for the purpose of replacing them in China in due time?
They are public corporations. They probably only took into account the next 2 years of profits they could make there, put it in balance and said "yup, betraying our Chinese users as well as our principles is worth it."