I found myself playing a game in which I was fighting a long and drawn out war with the Drengin. Several of the other civs, minor and major alike, were hoping I would win since my trade routes propped up their economies.
So, as good allies should, they started gifting me ships. In a pretty short span I had three different civs call me up and tell me, "Since you're fighting the Drengin, here are some starships."
They were all starbases.
Econ starbases, right next to their homeworlds. These starbases were probably fairly important to their economies. They were, of course, next to useless to me (a few trade modules near their end of the routes), and of course would have no impact on my ability to actually throw hardware at the Drengin.
How does the AI decide it needs to give ships to other civs to help out, and what makes it choose the ships it does? I know I would never think to give away a prime starbase to a friend on the other side of the galaxy.