I don't exactly see it this way.
Every person has a right to defend themselves. Even guilty ones, because until proven, how would you decide they are or they aren't guilty to figure out they have right to defend?
Most people don't know the law enough to adequately defend themselves. Even though you have the option, you would usually be well advised to use help of somebody that knows the law very well because knowing it is their profession and helping you is responsibility.
Just think about this, half of the population has intelligence below mean (ha! not average! but close). You need to generally be highly intelligent to be able to adequately dispute and represent yourself in a court.
So while I loath the fact that criminals use lawyers to escape prison I also recognize that this is their right and that lawyers serve an important function in a society the same way policemen who stop you for speeding or tax auditor looking through your papers do.