There are no EU laws. Member states create laws from EU directives. These laws often apply to everyone outside the member country. In practise these laws generally don't matter outside the member state, as it would be nearly impossible to enforce them. But the principle does exist, and the laws sometimes are enforced.