He didn’t need to say anything, in fact, he didn’t need to call you to say you didn’t get it. Take it as advice, not grounds for a discrimination suit since that’s not going anywhere. You’re being told you need experience to hit the ground running and not be a training liability for this particular job.