It is a problem in itself. First they want to know your age (they're pretending: of course they want to know your identity, but let's leave that for a moment).
What's next? Your US legal status as determined by your ethnicity? Scan your face to prove you're white? Yeah, that sounds absolutely ridiculous but so did the age verification with KYC just a few years ago.
Why are those things naturally "whats next"?
We allow bars and car companies to verify age before conducting business. Does that in itself lead to racial discrimination? I think not.