When the Romans started to get interested in grammar, genus came to mean “kind” of noun or “gender”, but because genus could also refer to biological sex, male and female, these concepts were occasionally conflated.
It's the same for Greek γένος, e.g. in Plato's Symposium:
> πρῶτον μὲν γὰρ τρία ἦν τὰ γένη τὰ τῶν ἀνθρώπων, οὐχ ὥσπερ νῦν δύο, ἄρρεν καὶ θῆλυ --189d
It's fair to translate that into modern English as "Originally there were three genders [or sexes] of human being, not two like now, male and female", but the specific meaning of sex or gender isn't there, just kind. It's a general word being used in a general way (literally, in fact: genus -> general).
Genere in Italian comes from the Latin word genus and means biological sex for people and animals but also kind.
Translate genere to English
noun
1. gender
2. kind
They ate not conflated, they depend on the contextWhat kind of beast is that? -> Che genere di bestia è?
What's that book genre? -> Di che genere è quel libro?
How to write gender questions -> come scrivere domande sul genere
Are you talking about grammar here? Because in many (most?) languages gender is not binary.
You realize that the use of gender for grammatical noun class is the original meaning of the word, correct? Gender comes from the Latin genus, generis (via Old French), which means type, kind, sort. The genders in Latin were called masculine, feminine, and neuter because one of the noun classes contained most, but not all of the nouns that refer to males, one of them contain the nouns that refer to females, and the last one, neuter, literally means neither.
If anything, it's English that is to blame here for taking the original meaning and corrupting it. I believe most non-english languages, when they want to use the modern English sense of gender, either borrow the word directly from English or just use a translation of sex role.