In a sentence
Connect the notes under the curve into one smooth gesture.
A slur groups notes into a legato phrase. On piano, legato is created by overlapping the release of one key with the attack of the next just enough to hide a gap.
The curve also shows grammar: its start, direction, and ending help the player shape a musical sentence rather than merely connect every note equally.