If they had quotas, they were made up internally. But more likely they were just lying to you, or the person who sent the email was twisting the truth. I don't think anyone but you thought of the "maybe you should change gender" bit. They just didn't want to hire you, personally.