Ah, thanks. Clearly it varies by country. This appears to be more a matter of tradition in the UK than legal requirement.
https://en.wikipedia.org/wiki/Cabinet_of_the_United_Kingdom#...In Japan it's a legal requirement that the majority of the cabinet be elected reps, but not all of them: https://en.wikipedia.org/wiki/Cabinet_of_Japan