The law they respond to was one that was intended to simply get website to stop using tracking cookies. Just don't do it unless absolutely necessary. It's just uncalled for bad practice.
But it is so vanishingly rare for ANY company to be well-behaved that now, the modals are ubiquitous. So common that people desensitize to them.