You can make a sexist choice in the script without the entire show being sexist.
You can't use "it was written" as a justification for why it was written.