It's not the EU who makes you do that, it's the companies making the website.
They could not use cookies, they could respect DNT browser setting, they could have not abused tracking technology, and they couldmhave chosen to comply with the law in a user friendly way, instead of user-hostile way.
They didn't. That's why now there is an imperfect law.