Actually, gender is and was always a theory. Before it was applied to humans in the current sense, it was a grammatic theory. This idea of gender as another name for sex is simply ahistorical - seriously, just go to Google Books and search for "gender" before 1955. It's only about grammar. Then John Money came around and use the word exactly to draw a distinction between biological sex and the cultural/sociological construct.