The AI doesn't analyze objects it can't see, but unexplored territory is attractive to it in itself.
Furthermore, it's possible that the AI knows the paths to certain key points – enemy towns and heroes.
I know for sure that it doesn't take into account the defenses that the player can break through. But does it see the entire map at once (but doesn't use the information it gets because it shouldn't), or does it not see it at all?
I haven't researched this aspect in more detail.
За то что нейтралы не бегают за единичкой, для меня это уже стоит того