Contrary to popular belief, the EEA is not required to follow every law set within the European Union.
> The EEA Agreement does not cover the following EU policies: common agriculture and fisheries policies (although the EEA Agreement contains provisions on trade in agricultural and fish products); customs union; common trade policy; common foreign and security policy; justice and home affairs (the EEA EFTA States are however part of the Schengen area); direct and indirect taxation; or economic and monetary union.
See section 5, "What is not covered by the EEA Agreement?": https://www.efta.int/eea/eea-agreement/eea-basic-features