Those two things are completely different. The first is an active lie to the person you are supposed to be closest with. It is a demonstration on some level of a lack of character. The second is the omission of not telling people something that it shouldn't be their business to know. LGBTQ folks are under no obligation to be out publicly and refusing to do so is not an indictment on their character.