Today I looked at what replaced the images that I once posted and noticed that in a couple of cases the new files are noticeably smaller than the originals I uploaded:
https://e621.net/post_replacements?search%5Bpost_id%5D=5397634
https://e621.net/post_replacements?search%5Bpost_id%5D=5310046
I'm not sure exactly, but it seems that these bots are for some reason configured to consider files with a certain link to be the best version, although in fact it's the other way around
Updated