This website contains age-restricted materials including nudity and explicit depictions of sexual activity.
By entering, you affirm that you are at least 18 years of age or the age of majority in the jurisdiction you are accessing the website from and you consent to viewing sexually explicit content.
They operate within the law. If a government says you either ban an account in their country or you stop providing your service to the entire country, which do you think X should do? Because those are the options - follow the law or exit the country.
X are challenging the government legal orders in court btw, but in the meantime they have to cooperate. Like I said, the government are the ones censoring free speech here, not X. Do you not see the difference? To operate in a country you need to follow their laws. Not every country has free speech constitutionally guaranteed btw.