I actually sometimes do that with depleted units. Where most of the troops have been killed and you have maybe 20 soldiers. Instead of combining them with other units, retraining them, or disbanding them, put them in ports. It's super cheap upkeep and it keeps the ports from getting raided.