Developers can always not implement those.
(Senior Developers could probably respond "here's some better ways". But Junior devs often hardly know their own name, let alone what better alternatives there are to this security theatre.)
I agree on that, the primary fault is at the hands of the one who thought that up and pushed it through to completion, but "just doing my job" and "if I don't do it someone else will" doesn't pass the smell test to me.