That’s only true for the law firms working on the bankruptcy itself. The justification is obvious: otherwise, it would be impossible to have bankruptcy lawyers.
Standard claims from a lawyer you once hired go into the same pot as your gardener’s.
Non-payment of judgements is likely built in as a cost of doing business, alongside a general unwillingness to seek awards on a contingency basis against people with no assets. Also, taking on an anti-SLAPP case with mandatory attorney's fees on a contingency basis means that the list price for the fees is more of a tool to extract wealth out of the other side, kind of like list prices in healthcare.