The modals don't exist to protect the user. Their goal is merely to annoy users to the point they just give up and blindly click "Accept". They only exist for the benefit of companies, and most of them violate GDPR.
Those banners are merely the effect of shitty companies trying to cover their asses and being non-compliant to a law that's actually sane.