If it was his idea, it often goes like:
(a) I am very smart, (b) I've always gotten my way by being very smart, (c) I (think I) am smarter than everyone who will be in the courtroom, and therefore (d) I'll get my way out of this by being smart.
Lot of smart people in fields other than law think that it'll translate to law. It doesn't, typically.
You see a less extreme form of this on HN frequently where people try to treat law as some boolean code thing, with statements like "well technically it says XYZ and because of ABC constraint...", when the reality is that any judge will take a look at the situation and wave the heavy wand of "spirit of the law" or whatever.
If it was his lawyer's idea, then I guess probably he decided case was already 99.9% lost, might as well hailmary it and see what happens.
Me too. I can't imagine any competent lawyer thinking it's a good idea to have him on the stand.