Gross disrespect, but some people don't have a filter between brain and mouth, so it's possible he didn't think about how it would come out.
This is very definitely a sore spot for transgender folk. Please, for your own peace of mind, explain to him why "it" is a no-no.