In a few programs, such as the Calculator or Solitaire, you spend your time working (or playing) in the lone application window. When you close the window, no trace of your work remains.
Most programs, however, are designed to create documents—files that you can re-open for further editing, send to other people, back up on another disk, and so on.