Unfortunately, they are required by law (at least in Europe) and we can't do much about it. You can't say use a browser API to set a global setting for them, because GDPR explicitly requires that every website must get the user consent for them.
Of course the real solution (and the reason why GDPR introduced the banner) is for website to stop using cookies for tracking their users and thus have no reason to put the banner (you don't need the banner for technical cookies, such as the one used for logins, but only for third party profiling cookies).
Of course the real solution (and the reason why GDPR introduced the banner) is for website to stop using cookies for tracking their users and thus have no reason to put the banner (you don't need the banner for technical cookies, such as the one used for logins, but only for third party profiling cookies).