Let's be clear here: The law is NOT to blame for cookie banners.

The blame lies with companies that would rather inconvenience you with a banner than respect your privacy by not collecting (and selling) your data..

https://www.politico.eu/article/europe-cookie-law-messed-up-the-internet-brussels-sets-out-to-fix-it/?

Europe’s cookie law messed up the internet. Brussels wants to fix it.

The European Commission wants to take a bite out of privacy rules that force websites to run cookie banners.

POLITICO
@vmbrasseur why do I need a stupid cookie banner to stay logged in on a website? It’s always about the “selling your data” straw man for you people. Admit it. That was a bad law that made the internet a little worse for everyone.
@Beirutspring @vmbrasseur What may have happened is that website developers (And especially Website PMs) developed the banner for cases where cookies *are* optional, and required consent to use them, and have reused them for pages where said cookie banners are *not* necessary, because essential cookies to stay logged into a website are still allowed even without asking for consent, as I understand...it's just that they want to surveil data, and do not want to customize their banner every time.

@Beirutspring @vmbrasseur Specifically, they read this:

[
European rulemakers in 2009 revised a law called the e-Privacy Directive to require websites to get consent from users before loading cookies on their devices, unless the cookies are “strictly necessary” to provide a service.
]

And read the "Strictly necessary" as being too onerous on them to determine, and not in their best interests in order to sell tracking data to advertisers - hence the pop-up on sites that do not need it.