well his self-given job is to archive everything
because he was programmed to do so, and also because he believes every piece of data has value and importance
the reason he goes after Cory (rename not decided yet) is because he believes Cory has data that needs to be archived, though he can't figure out what it is
between the library/shop interaction and the boss fight, I. E. realized what that data is
Cory's SOUL