the giants aren't all occupying the same tile(s). Therefore they can be a different distance to different things.
The giants 'in the back' decided that it was 'closer' to go around to the mortar than it was to break the wall to the AD.
I'm not saying it isn't ideal...but that's the way the AI is coded.

