Part of the comment I quoted indicated that they only did it for women. If they were calling this out as something they do for all candidates and were just talking about how it helps women, I wouldn't see an issue with it.
For example, consider two situations.
"We provide daycare for all employees with children. This helps us recruit a more diverse team because child care responsibilities is something which tends to be unequally distributed in our society."
"We provide daycare for female employees with children. This helps us recruit a more diverse team because child care responsibilities is something which tends to be unequally distributed in our society."