I'm still new to macs but it goes something like when you quit a program it is suppose to delete temporary files but sometimes for one reason or another they don't so when you restart your computer it automatically cleans them out and puts them in the trash.
Nothing to worry about just a minor annoyance if you're a little OCD like me.