Irrelevant.
The employer has the right to determine if the employee can do the job. We do not hire blind airline pilots. Go figure.
A pilot hired for a job that requires lifting and full mobility, such as loading and unloading a DC-3 of freight, may determine if the pilot can lift a given amount, or if the pilot has a medical condition which precludes doing that job. I have been employed in locations where weight was a specific disqualifier to the use of an ejection seat, and thus a disqualifier for the job.
Airlines regularly ask if one has a criminal history. Airlines ask about one's medical and require proof, and medical certification is a condition of employement as well as a regulatory requirement.
An employer can ask if you've ever failed a checkride. An employer can ask if you've ever been arrested. An employer can ask if you've ever had your medical certificate denied, suspended, or revoked.
The employer can ask your favorite color, star sign, or pet. You are not required to answer.
The employer is not obligated to hire you. The employer is also not obligated to tell you why you weren't hired.
An employero may provide a full medical examination which is not part of FAA medical certification, or may set additional or higher standards, should the employer choose. You are not entitled to the job and the employer is not obligated to give it to you.
When you come to an employer in supplication and application for a job, you are a beggar, not a chooser. Don't let entitlement blind you to think otherwise.