well it would have been really hard to understand the narrative up to this point if they had referred to him as a female in the earlier chapters without this chapters context and i know some references for male/female can be inferred as either/or in some dialogue
so while the plot holes there...