Most of the processing tools in QGIS generate temporary outputs. If you close a QGIS project with temporary layers, QGIS will warn you of the existence and you will have the chance to go back and save them explicitly (make permanent) Temporary outputs have a little RAM icon attached in the layers view