A similar thing happened at a previous company I worked for. We had lots of male candidates apply to an opening but only one female candidate. The female candidate was by far the weakest and I strongly advised not hiring her, but I was overridden by higher ups desperate to improve DEI and she was the candidate hired.