Sometimes they forget to scan the packages when they load them on trucks or etc. Or the barcode gets damaged, and they just do it manually without scanning.
I had cases where a package was shown as "at origin facility" for several days and then, it was out for delivery at my location without any indication of movement in between. If you check the package when you get it back, sometimes you can see the original label is damaged and they printed a new label.