They may be running a linter and don't even realize it. Many LLMs do this by default, aka, as you say, follow best practices.