I think there were women who could have been great composers if they had the chance.
You reminded me about an essay of Virginia Woolf "A Room for One's Own", where she explained how women were limited in the practice of things where men were praised, but the topic was related about writing in fiction: women who wrote it and how women appeared in fiction.
I hope I am in a mistake, but alas, the women who are recognized as performers, musicians, and composers in the past were at some point connected to the composers of the time: sisters, mothers, wives, students, etc. They were seen either as students of people with money or as a kind of support for the composer, as influences, muses.
Nowadays, it is more possible that a woman can be a composer, like Adele, without having someone behind her.