You can think of it this way because this last sentence does provide support for the main conclusion that sex and gender are not the same. This sentence demonstrates an important difference between sex and gender.
I hope this helps. Please let me know if you have any other questions or would like me to elaborate further.