In fact, it was almost embarrassing for a man if he knew how to type since that was women's work.
So I'm sure that played a role once keyboard came into the picture.
Before that, when it was mostly punchcards, women were manual "computers" that did the calculations. So it seems reasonable that computers were considered women's work and thus that drive the trend.
Whether women were more or less suited to the job wouldn't seem to be relevant at the time.