... such as?

Surely as long as the advertisement is legal, "they" can stipulate whatever they want, in the hope of fulfilling their requirements.

Far better that they make this clear from the onset, rather than waste everyone's time with a trail of disappointed interviewees.

Anyway, what about the maxim:- "I know when I'm not wanted"?

If you don't inspect ... don't expect.