Dear Sir or Madam tests your knowledge of formal letter writing.
In these days of text and e-mails, 'good old-fashioned formal letter-writing' may seem to be a bit of a lost art ~ but it has a style and conventions all of its own, and as an advanced EFL student you should be just as aware of this as of anything else.
If you open a formal letter that begins 'Dear Sir or Madam', what else might it be about to tell you?