ID scanning allows dispensaries to verify the ages of their customers, keep track of how much they purchase per day, and make the overall experience more pleasant. The person scanning your ID is a trained professional who understands that it is illegal for anyone under 21 to purchase cannabis products and that it's also illegal for anyone to sell them to you. They will only scan an ID if they believe you are 21 or older and not selling any cannabis to minors.