Because it's a named file you created. Remove it after you close the handle with unlink().