I think the ai does that because they think it's a missile unit, it does the same thing for peltasts sometimes.