This is only a suspicion but I think it automatically drops turrets when it's being attacked, even if by strikecraft (which the turrets obviously can't hit) - it might also drop them right after warping from a well with an enemy starbase due to the hull damage caused.
Or did you see it happening in other cases as well?