What's the problem with those questions?
(Also, it's an insufferably pretentious question, even if not actually illegal.)
[1] E.g., it might be legally acceptable for a role in a religious organisation.
What do you stand to learn about the quality/fit of a candidate from the question "why do you want to work with us?"
They could give a 100% bombshell answer and yet not at all fit the role.