Because, despite what people say, the countries of the EU are distinct countries with their own legal systems.
However when it comes to harmonizing copyright legislation it was agreed unaminously that 65% of the EU population, plus 55% of the EU countries, could implement laws that are binding on the rest.