Two theories to why you were banned by cac. One, it was a false positive which is rare with cac, but I have seen it happen on occasion. Two, you had your sv_cheats set to 1 intentionally or not (which caused the console variable manipulation) and had something like an auto exe file running or external clientside lua (which causes clientside lua execution). Whatever the case may be, Traitor or Dink would have to confirm whether or not the ban was accurate in the cac menu by looking at what triggered the clientside lua execution.
Noot Noot ~(^-^)~