Or discrimination. You never know, maybe you worked with his former boss, it could be anything.
Or the interviewer felt insecure and threatened by their competence. If that's the case, they dodged a bullet.
Either way, I hope you've found a good place to share your skills since that experience. Wishing you the best