My feelings are hurt

So I've been seeing a therapist that I like for over a year. I felt like we were close cuz Ive been telling him all my personal stuff obviously and I thought him and I just got each other. It honestly felt like I was talking to a friend during our sessions. I recently found out he is transgender but I'm just hurt that he never mentioned it to me (not that he has to I guess) but I'm just so hurt that he didn't want to disclose that. It's hard for me to be open with people so I thought at least he would be open with me but I guess I was wrong. I'm not sure how to proceed with this and I'm upset he didn't want to tell me and I've never had a therapist before so idk how this is supposed to work. I mean is there something wrong with me why he didn't mention it?