Blizzard is famous for a variation of this.
They will spend a few weeks/months detecting cheaters, but do nothing.
Then, they will ban many users of a given cheat at the same time. This creates press, which helps the message of "you will be banned if you cheat" spread further than if they had immediately banned each offender.