Asked to scan my ID on a Walmart grocery delivery

I am just curious if this is something new that has been implemented? I had a grocery order delivered from Walmart today and everything was normal until the delivery driver rang the doorbell and just waited. I answered the door and the delivery driver said they needed to scan my ID which I have never been asked to do before as I pick the “leave at my door” option when I schedule the delivery. I double checked my items and nothing would need an ID check for say medication or alcohol. Any information would be helpful as I am wondering what would have happened if I wasn’t home. Would the driver have taken my groceries back?