The EU has a certain amount of jurisdiction over all companies providing a service to customers located in the EU.
A US company can always stop serving EU customers if it doesn't want to comply with EU laws, but for most the market is too big to ignore.