My daughter and her boyfriend had that happen last July at Heathrow when on their way to Singapore, and there was an earlier flight going within time for them to board. The whole thing happened at check-in, so I suppose they and their bags were logged onto the right flight.
Can't say as I've ever been that lucky, and I am ALWAYS early!