It was originally invented (I think) for such programs as fsck in early UNIX systems, which ran interactively and demanded confirmation of each change it wanted to make.
BTW, you can also get it to say no:
Code:
$ yes no
no
no
no
no
no
....
It'll echo any arguments ad infinitum.