The relevant term is "administrative discretion" - the exercise of professional judgement which is not done according to the strictly formal rules, but through other, more informal means, such as making rules and choosing some and not other people for offices.