They try to get you out of having to go to jail
They are prpfessionally trained for you to hire and give cash to in order for them to be on your side and fight for you and the judge will listen to them because they are professionals and they can help you with getting money back, making you not guilty, getting you out of jail. They pretty much can't backstab you unless your opponent has visual examples of why you are guilty or if their lawyer is better than yours.
Lawyers can also be vital as they are able to legally represent their clients and deal with a wide range of cases when a layperson could not, or cannot represent themselves. ... Whether access to civil or criminal law is needed, lawyers can offer initial advice to the legal representation of their clients