I used to wonder why to write a cover letter when you are sending a resume. But, later I understood that sending a cover letter with resume makes the work easy for the HR of the company; and if I send a good cover letter, then my resume will be taken seriously.