For example, if I am talking about a window and a door, and a window is masculine and a door is feminine, I can use the pronoun "it" in either masculine or feminine form to clearly refer to one or the other. Or I could use a verb "opened" in a masculine or feminine form, and it will be clear which of two things I mean without explicitly repeating.