Just a side note, but I have to give a thumbs up to this site being the first one I’ve seen since cookie popups shenanigans started that allows me to decline tracking cookies and dismiss the popup in a single click.
That is exactly why many do it. The chance of getting fined is low, practically non-existent in most cases, but making the user experience difficult both increases the chance of people just saying “fuck it” and agreeing¹. Those high up the data collection chain also hope that annoying enough people with the bad UX will make them campaign to have the regulations rescinded² in their territory.
---
[1] losing people like me who say “fuck it” and move on elsewhere, is seen as a small price to pay
[2] even though the regulation isn't at fault, the deliberately bad UX is
It's entirely up to the people authoring the website.
Jaywalking is illegal in many places too. It's an enforcement problem, not a legislative one.