I guess the answer is "both". But I can't shake the feeling that this is actually much worse for women than it is for men.
In principle, I don't even have a problem with some groups getting a few more days off, or other special arrangements. Some countries have rules for minority religions, for example, allowing them to celebrate their respective holidays. But I can't really imagine any women thinking that this would be a good idea.
* women who are in pain more than one day a month because of their periods
* men who have prostate troubles or other illnesses exclusive to men
And it gives an unfair advantage to:
* women who aren't in pain during their periods
* women who have their period less than once a months (for example because of the Pill)
The criterion to get the day off shouldn't be "are you women?" but "are you in pain?". They probably chose the former because they think it correlates that much.