This happens if you fire both in the same direction. The bullet is much faster than the rocket and therefore will "catch" the missile after some time.