Kroger does the same. Takes away the cashier having to judge if a kid is 17 or 18 or whatever the legal age is.
Not selling beer to 18 tear olds is discrimination based on age.