Not sure how you relate your UPS delivery with the scam call? Just because it happened the following day you expected a delivery? I could be just a coincidence.
I'm sure scammer's got get your phone number from many other sources and data breaches.
I'm sure scammer's got get your phone number from many other sources and data breaches.