Question about buying beer?

Seems most the time they have to punch in a birthdate in the register before they can do much else, no matter how old. You’d figure seeing an older person you’d just punch in random numbers get it over with.