They don't have to, is the thing. If Facebook can't operate as a business in their country, then they can't collect advertising revenue there, can't run FB marketplace, etc.
Facebook has always had the option to not operate as a business in a country, that they do is because it's profitable to do so.