This is not strictly true. Do you recall the story of the faithful Centurion and his "servant?" There is quite a bit of scholarship on the terminology used in that passage in Luke. The term in the oldest Greek texts, does not actually mean simply "slave" nor "servant." It is a term likely more akin to same-sex concubine. And, the audiences of Jesus' time would have known that term and its meaning.
So, Jesus had the opportunity to teach on LGBTQ people and His lesson was to praise the Centurion's faithfulness and to heal the servant.