A cover letter is used for providing more details about the qualifications in your resume, and explaining why you’d be a good fit for the target position.
Unlike a resume which only shows what qualifications you have, the format of a cover letter allows you to explain why your qualifications, past accomplishments, and personality make you the best candidate for the job.