I dont think you can compare the two faculties out of context. One driver for the especially abysmal ratio in my case was there being a competing degree. A more media focused computer science degree gutting out the low level stuff. There the ratio was great, but that was due to poaching of design students. Same with a data science masters degree poaching of the mathematics department.
While there has been a great example to the contrary of the Arab world (which requires more consideration), it seems that the more choice you give female students to get around some stuff the more likely they will do. That would boil down to some stuff being less attractive. So the question is do you trick/nudge/force people to do it either way?