It's not intuitive to me for why preference for its own writing would emerge, and during what type of training or tuning.
Perhaps something like: learning to identify what source files it has worked on by the code style alone, because tasks may give human code (public repos, etc) and ask to make changes.