If an answer is dangerous - maybe it's got some kind of hidden malware in it or running it would non-obviously delete data then those answers need to be removed. Moderators may not have the necessary subject matter knowledge of the programming language to determine that so it's up to subject matter experts to help out and do it for them.
Sometimes the OP may accept a perverse or rude answer or something that isn't an answer at all. We shouldn't allow two users acting together who may know very little about how the site should work to override the community and prevent a very poor answer from being deleted.
Excepting moderators, it takes at least 3 users with 20K to delete an answer so it's not something that can happen very often. There's no real delete review queue either so it's ever so hard to get an answer deleted. Here on Meta Stack Overflow an answer also needs to get to a score of -8 before non-moderators can vote to delete it.
On top of that non-moderators only get one delete vote per post so if an answer has been deleted by mistake and a moderator then undeletes it, we can't vote to delete it again.
If you know of some answer that's useful and been deleted then custom flag the question, or any post at all if the question has also been deleted, and ask for a moderator to undelete things. You'll have to give the moderator some way to find the answer.
Note that the moderator will look at the answer and if it deserves to be deleted it will stay deleted.