Much like the IT industry itself, the reason is complex. In the true meaning of the word ‘complex’.
There are many interacting components in IT, and no one person knows how it works as a whole, or even why it keeps working.
By it’s very nature, IT attracts intelligent people.
Why don’t more go bad? Simple. They realize they don’t know enough to not ultimately get caught. They are intelligent.