A flight number, I believe, is assigned to a regular round trip in general. So this is no more unusual than, say, the 42 bus arriving at the stop as the 42 bus is departing across the street.
Buses each have individual identifiers, even if they are tied to the same route.