I thought I learned this is school, but looked it up to see if I remembered correctly...If Madden hadn't had an attorney already, I believe the arraignment is where one would be appointed. I am guessing, somehow he has privately hired one ir Judge Harrison would have. Lock doesn't have a reputation for being cheap. This attorney thinks very highly of himself.
http://criminal.findlaw.com/criminal-legal-help/how-to-obtain-a-court-appointed-defense-lawyer.html
http://criminal.findlaw.com/criminal-legal-help/how-to-obtain-a-court-appointed-defense-lawyer.html