The right to have an lawyer provided by the state only applies to criminal cases, not civil cases like in this one. In civil cases the burden of funding a defense is on the defendant. Even if it’s initially thrown out, the appeals process can take years and even more money.