And then you've got the back end...
...of the process.
Suppose you're wrongly accused of a heinous crime and lack the resources to hire competent counsel. In the US the court appoints a public defender, generally a newly minted lawyer with no staff and very little time. I don't know how this works in the UK, but here its a disaster.
If you're poor and subject to a "wrong man" child abuse complaint, you're screwed.
Extreme case: https://www.nytimes.com/interactive/2019/01/31/us/public-defender-case-loads.html
My church and family work with many homeless people and lack of access to effective legal services is a big reason many are homeless. The stereotype of homeless being lazy substance abusers is just that... I'm as likely to see a guy with a laptop bag living rough as I am a man with a dime bag.