Right? Why can't you scan your ID and then be prompted what information to share with the system, like age? I scan my ID, the system asks to retrieve age information, it retrieves it, now I can proceed to scan my alcohol. No human interaction required.
If the person manning the self-checkout operations thinks you look awfully young to be buying alcohol then they can always demand to see your ID.
Simple.