Why do you think it is a bug or stupidity? Is there anything else that the AI could have done with the transports apart from move them, i.e. attack/invade elsewhere?
There's not really much point in moving your ships unless there's a valid reason to do so, e.g. under threat or an opportunity elsewhere. Might as well leave them be otherwise, I know I'd probably do the same.