Sex is anatomy. Gender is how society interprets that anatomy.
If gender were purely biological, men wearing dresses would be “unnatural” everywhere and in every era.
Yet for most of human history — from Roman tunics to Scottish kilts — it was completely normal. Bodies didn’t change. Social rules did.