Two answers here.
The first is that the question of what the real historical attitudes of LGBTQ+ people were in any historical period, unless that period is incredibly recent, are actually pretty hard to pin down. There’s a tendency to assume that historical attitudes to, well, everything are just modern attitudes to everything but getting linearly worse the further back you go, and that’s not true. Nor do we actually know how people who died a century or more ago actually felt about anything in their day to day lives. We can make guesses based on the writings those people (those people who actually had their writings recorded, so mostly the rich and powerful) left behind but guesses are all they are. Assuming that every conversation in a Regency household sounded exactly like a Jane Austen novel is like assuming every conversation in an American household sounds like an episode of Succession.
The second is that I’m a novelist, not a historian. I use historical settings to explore themes and ideas I like and find interesting, and I don’t feel any particular obligation to hold to any standard of “realism” that doesn’t make for a good story. Nobody should be trying to learn history from my books.