In many countries political dissidence is a crime. If you want to allow only the 'good guys' to be anonymous you need a perfectly trustworthy party to decide who the good guys are. Various governments have demonstrated that they cannot be trusted to do this
You can't prevent libel and slander without encroaching on free speech.
When someone attempts to remain anon for their own safety and privacy, then that is perfectly fine (providing they are not committing a crime). Political dissidents, celebrities, etc.
But when someone attempts to harm another via an anon posting to a forum and they think it's OK to do that, then that is wrong. Libel and slander are just that. Whether they occur in an Internet forum or in a newspaper. People doing this should know that they can (and will) be sued and that they are not anonymous.