Most defendants don't know anything about the case. They've been avoiding collection calls for years as agencies sell and resell their debt. Piles of unopened mail, etc.
For their part, the agencies tend towards sloppiness. Some debt sells at <5% of face value, and comes with virtually no information or documentation.
Thinking about this is a matter of justice is ridiculous. It's not a justice driven process, it's an economics driven process. The agencies do this as their business. They work repetitively, create a process and pursue cases as long as average revenue exceeds average court costs. If a defendant shows up and wins, it's a small cost. Most defendants don't show up, so they don't bother spending legal time making cases good.
And yes, it is the courts responsibility to put a stop to it. For one thing, resolving debt humanely (or not) has been a court function since ancient times and still is. Secondly, debt collectors have basically turned these courts into their own shady place of business. It reflects badly on the court, besides clogging it.