It's unlikely they wrote you out to be a bad candidate but rather their reference was unsuitable i.e. in med it's important that applicants are good at communication so teacher references should say that this applicant is good at communication in their reference, a reference without this is less strong. However, teachers may not know what to write in your reference (i.e. they may have never done one for your specific uni and course) so it's good (it you are getting another teacher reference) to research the skills required for the course and let your teacher know, also tell them about the relevant things that demonstrate your skills, e.g. Communication - on DofE I communicated route directions with my team. I literally wrote a list of skills and relevant things that I would like my teacher to include - remember you can collaborate with your teacher to write your academic reference!!!