Asking non-job-related questions can lead to discrimination claims and legal consequences, as well as undermine the fairness of the hiring process.