Whatever the reason, it wasn't because his characters were "openly maga and a homophobe and a transphobe," because they weren't. Bruce Lee movies and Texas Ranger didn't address those issues at all.
And in spite of his flaws, it's possible that he had some good qualities as well, or at least aspired to them. So maybe those other qualities were what he looked for in the characters he played.