Packaging and especially packaging waste have some effects and impact on the environment. The idea with this legislation is to reduce the impact of the plastic waste on the environment.
Check this interesting article on Spain’s circular economy legislation implementation on packaging published by Osborne Clarke.