Assume for a moment that research output is affected by time in the field; either older people publish less due to resting on their laurels, or older people publish more due to greater experience allowing them to publish with less effort; I don't know without reading the paper which is true.
Now consider what happens if men are (on average) more experienced because up until recently more men entered the field than women, but then the trend reversed. If you just compared female to male research output you could come to the wrong conclusion; the difference in experience could overwhelm the difference between sexes.
So there are various statistical tools you can use to measure the difference due to experience, and subtract it out from the difference between sexes to get a more accurate measure of the difference due to sex. Doing this is called "controlling for a variable"