There's a balance there - the court records need to be public so that the justice system can be held accountable by the public in some way, and records need to be available to inform precedent for future decisions. That needs to be weighed against what you mentioned, the impact of the availability of those records on the people they are about.