One can have religious training and still question religious texts. See Jodie Helm's https://jodieshelm.medium.com/its-okay-to-ask-religious-questions-d97773a32114 . Moreover, there is very reputable scholarly authority that the new and old testaments, before mistranslations took hold, said no such thing. What has come to be written as male and female were originally meant as human/animal and soul. See the work of Graham Pemberton on Medium if you are interested in having an open mind. Here are two from his series about Genesis that are relevant. https://medium.com/@graham-pemberton/what-do-the-first-three-chapters-of-genesis-really-mean-chapter-2-the-creation-of-eve-7aa72143925b and https://medium.com/@graham-pemberton/what-do-the-first-three-chapters-of-genesis-really-mean-chapter-2-further-thoughts-b6797482fd5c
If one applies general critical thinking to the matter, biological sexes, which exist throughout the animal and plant kingdoms wouldn't require any mention in religious texts as it doesn't add any meaning. There is a concept in law that when words interpreted one way do not add any meaning, then another interpretation is required.