How do they externalize the cost? Who is paying them? The plaintiff class-action firm pays their own costs and hopes get reimbursed when the case is resolved.

Courts aren't free. Juries involve real humans.