Answer:
To ensure objectivity
Step-by-step explanation:
Peer review is important and should be impartial. To avoid any kind of subjectivity, the author of the article and the reviewer should not know who is the author/the reviewer, even if they know each other in real life.
If the identity of the author/reviewer was known, some unfair reviewing might have taken place as somebody's friend may write a positive review in order to support their friend. This would be highly unprofessional and highly damaging to the science also. By keeping things in an anonymous way, integrity and fairness of the research is guaranteed.