They were asked to remove people from twitter who violated brazil misinformation laws (something they already do for india, saudi arabia, etc) and in response musk shutdown x offices in Brazil and refused to appoint a legal representative. Brazil then court ordered that X would be blocked since there was no legal way to deal with X.
Musk says its about free speech, when - because its something they already do in other countries - its clearly not about free speech at all.