Lawyers, like most, will take a profit if they can see one. Whether they can depends on what field they're operating in. Immigration law is one particularly fertile field. Crime ; traditionally the most money is made by having the client plead guilty to something thus ending a case, listed for trial, on the first day (which may be good news for the public, but not ideal), a pretty desperate way of increasing income.
Hamza's case shows two things. The first is that opportunities arise in this field to make a lot of money from the public purse from cases with no real merit. The second is that there are delays built into the system which are indefensible. Both are clearly wrong, and somewhat linked in that delay gives opportunity for more costed time to be added to the bill.And he can lodge some sort of appeal even if deterred in his instant application, no doubt.