Brainiac 5 has been portrayed as believing “the ends justify the means” for the last few decades. Toss that in with the entire Legion being manipulative dicks throughout the Silver Age and you get a Brainiac who would work with Lex Luthor to get what he wants. I wouldn’t be surprised if that’s the show’s inspiration…