They don’t, there is plenty of western companies there. And yes, they need a local branch, same way non-US companies need US branch to conduct business there.
American law forces all US-controlled companies to relay user data to various govern agencies without any real oversight. EU is protecting their citizens too.