The bag lie around until evening when the pace slows down, and the remaining bags are routed to the relevant flight. But it might be a while until a there's flight in the relevant direction, and there might not be enough room on it.
At the destination airport, the bag waits around for a courier pickup, and that might take a while, because the airline wants to get as many bags as possible on the same pickup, because it's cheaper/easier.
I may be mistaken, but I'm pretty sure: At NO point during this process doesn't the airline know exactly where the bag is. Barcodes are not at fault here, RFID won't fix it -- the problem is overloaded systems, delayed flights and overly optimistic connection-times are.
They don't tell you this, because it's simply easier not to. If they telling you one thing, they'll soon end up rationalizing every single decision they take regarding every bag to everybody. It sucks but the alternative sucks more.
Upgrading baggage handling is expensive, and there are only the carriers, which in turn means the passagers, to pay for that.