Answer:
It's widely used when the recipient's name or title is unknown, such as when you are providing a recommendation for a former colleague and do not know the name of the hiring manager.
example of "To Whom It May Concern” in context:
To Whom It May Concern: I'm writing to file a complaint about the service I received during my visit to your store on Monday the 28th of this month.