This discounts people that transition to CS from another field like mathematics, chemistry, physics, etc. Just because you didn't major in CS as an undergraduate doesn't mean you can't program. That is a bit of gatekeeping. Plus, I'd argue someone from a field like mathematics and physics might be more suited to do certain types of programming jobs due to their background skillsets.