I'm just guessing, but here goes :
Basically, the anticheat has a list of files, and it compares them to your files. The way it works is that when you modify a game file, it'll trigger the anticheat.
To have maximum protection, what they do is protect all game files. Therefore, when you install unauthorized mods, you modify a file, and make it so that it counts as cheating.