The main cause of a rape accusation being so damaging in the first place is the low rape conviction rate. The reality is that nobody trusts the justice system to successfully convict rapists, because most of the time they don't (largely because of the nature of the crime). So when someone is charged with rape and found not guilty, there's always going to be that element of doubt around it. Whether or not you think that is sufficient reason to keep it confidential is another question. Let's be honest, being accused of any crime isn't exactly a pleasant experience. But a decent number of rapists turn out to be serial offenders when finally caught, and I personally think that's enough of a reason to keep it as it is. Particularly in cases of child abuse, serial offenders seem to account for the majority of cases, from what I've read, which means there's a huge incentive to encourage others to come forward. And just on a practical level, trying to keep these things anonymous is fighting a losing battle nowadays anyway. We're already seeing accusers regularly having their identity publicised online now despite the law, and the same thing will happen to the accused.
I'd also be very careful about framing it in a way that suggests that if an accused person is found not guilty, that means the accuser was lying. People who are found guilty of making a false accusation to the police can already be named and shamed, but that has the same burden of proof as convicting someone for rape in the first place. Although from what I've read, the majority of false accusations come from people with mental health problems and lack the sort of credibility that would result in the police even arresting someone, and in those kinds of cases, it makes little sense to charge them.
The reality is that there's no perfect solution. You can say that someone shouldn't have their life ruined by a false accusation, but the reality is that certain consequences are unavoidable. It's not fair that an innocent teacher accused of child abuse is suspended from their job, but what are you going to do? Risk a child abuser teaching your kids because it hasn't been proven in a court of law yet? Whatever you do is going to be shit for someone in this situation.