TCMD / TCC create temp files for hundreds of reasons, but they always delete them when they're done (unless you kill the process). You can also create temp files yourself (@UNIQUE).
From your description, it sounds like a clipboard temporary file (used with the CLIP: pseudo-device).