At the same time, giving up a market will give another competitor a golden oppurtunity which could come to bite them. And countries could probably somehow force Google to continue operating Youtube there by threatning other Google products.
It would have to be another player willing to invest a ton upfront, and continue burning ludicrous amounts of capital over many years before they could actually compete