Yep - GDPR is driving a lot of thisEuropean regulators were at the forefront of data protection rules for companies.
They can’t collect “personallly identifiable information” without consent. Such as IP address.
You’ll notice it on some websites in the US too.
If the company is global and subject to European regulation then their global website will ask about cookies acceptance.