Its a way to make sure the delivery takes place. A code is sent to recipient and recipient only gives it to the delivery person once item is handed over. Delivery person cant mark item as 'done' without the code. I've seen Uber Eats do the same thing sometimes.
My signature on a touchpad is noticeably different from my paper signature. It’s been a real challenge for me recently as I’ve had to sign a number of paper documents while the “official” signature on file for me is an electronic one from a touch interface. A few times I have had to resubmit fresh copies when the first ones were rejected.
Sometimes I wonder if true reason behind them is not any sort of verification but to maybe increase potential punishment if caught... So effectively nothing...