At least in the USA, you don't have to be an exceptional specimen, but you can't have any problems which would be logistically challenging... or most mental health diagnoses.
"But isn't that just excluding the people who actually have the stable home life to have their mental health examined earlier in life rather than meaningfully improving the mental health standards of recruits?"
...
¯\(ツ)/¯