The defendant wants to hide the truth because he's generally guilty. The defense attorney's job is to make sure the jury does not arrive at that truth.
The most important training though is to experience life as a writer questioning everything inventing multiple explanations for everything. If you do that all the other things will come if you don't there's no hope for you.