V.Strange.
However, if this vessel was moving away and was at some distance before doubling back after loosing sensor contact with you, something triggered/caused it to reacquire you, that or due to TC it skipped its next waypoint and it's new course actually brought it back towards you & thus established a new sensor lock.
Either way, I shall look for this on my next patrol.