I believe this, and similar things in job applications, is mostly so they can generate stats that would reveal if there was discrimination going on.
It feels weird because you're providing the information to the people who are being held accountable, and the idea is to get to a place where the information they are asking you for doesn't matter, but life is complicated.