Unless the two sides significantly disagree about the chances of winning, they’re both better off avoiding the costs of trial and the risk of not being able to predict the result by settling. Also, they can have NDAs as part of the settlement and it doesn’t set a precedent, so even if it’s a large settlement other people will be less likely to sue than if they lost.