I was once referred to a job and the same thing happened. Immediate rejection. I told the referer who had to reach out to the hiring manager who had to call HR to interview me. Ultimately I got the job but its insane how often this happens. And if not for that friend they wouldn't have pulled me from the auto reject bin.