Having a formation keeps the ships where they belong; they may split up during evasion but they will regroup.
Unfortunately, the AI isn't smart enough to go around land if the land cuts through the formation. You have to make sure to give yourself enough space so that the whole formation can get by.
__________________
|