That's exactly what the GDPR tried. If only it was properly enforced
IANAL, but the law seems a bit vague to me, and it appears that companies use that vagueness to their advantage. Maybe I'm just not articulating my arguments correctly.
But enforcement is just laughable. Even on easy to observe issues like which data is collected