Why do activating missile seeker sometimes triggers TWS target switch?

As in title, sometimes it’s fine, sometimes it switches a target and activates the seeker, yet the tws tracking is not lost