Automated deletions and state changes are performed by your database cleanup options. I recommend reviewing your cleanup configuration in the Configuration\Scanning Setup\Server Options section of the console.
This knowledge base article provides more information on database cleanup options.