When a tone is heard in a musical context where it becomes unstable it wants to move (resolve) to a stable note elsewhere.
The major triad is a very stable chord.
It can form the end of a musical statement. There is, to our aural perception, no need to continue to another tone or chord.
If we play for example a G major chord it makes a statement, it provides an answer.
The Dominant 7th chord, on the other hand, poses a question.
It is, in a musical sense, very unstable and usually needs to be resolved to another chord.
If we play for example a G in the context of a G7 chord, it becomes unstable.
It poses to our ear a question that has to be answered (resolved) by an other tone or chord.
We feel that the G7 chord can not be the end of the music, something else has to follow to conclude it.