In electrostatics or in gravitational, when we are talking about interaction between multiple charges or multiple masses, we say that the interaction between any two charge or mass is independent of presence of other charges or masses.
But while studying Waves, we use superposition in a different context. We say that under superposition principle, we can obtain the displacement of a particle under the influence of two waves by adding the displacements of the particle due to each wave.
I don't see how there is a connection between superposition in the two cases, if there is one. Does this mean that superposition is of different types?