Actually merchants are specifically prohibited from asking for ID when a card is signed. That's under the merchant agreement they have with Visa and Mastercard.
So, the training I got when I worked as a cashier way back when must have been a fluke, even though it was with one of the largest retail companies in the country.