It should be illegal to ask about race, ethnicity, gender or whatever on the job application.
Or to ask for the year you graduated from high school or college. It’s same as asking for your age!