Hi @Marco Lusardi ,
As far as I know, the temp folder provides a workspace for the program. Programs can be created there, temporary files for their own temporary use. Every program should delete all its temporary files when it closes, but it doesn't always happen for various reasons (for example, if the program crashes), that's why it's a good idea to periodically clean out anything left there.
For more details on temporary files, refer to the following links:
https://www.slipstick.com/outlook/securetemp-files-folder/
https://www.nucleustechnologies.com/how-to/delete-outlook-temporary-files-in-windows-10.html
(Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.)
Hope above can help you!