This isn't a legal thing, it's Apple being Apple. The law is about platforms that deal in pornography, self harm, etc:
https://en.wikipedia.org/wiki/Online_age_verification_in_the...
https://en.wikipedia.org/wiki/Online_age_verification_in_the...
> The law is about platforms that deal in pornography, self harm, etc
So...not exclusive to Apple.