EU definatly have rules everyone has to follow. They're often called "directives" and are not optional. E.g. the 2021 ban on single use plastic cuttlery.
That was decided by EU. Members then have to implement it and reach that goal within a certain timeframe.
EU also decide what can and can't be imported into EU.