Oh 40k lore is all over the place, especially early stuff up until about 2012 when they got more serious about keeping an eye on everything.Whatwhatwhat? Christ, who wrote that?
Hell the Ian Watson era, which is early but existed, is filled with weird sadomasochistic sex stuff, including boys wanting to be space marines getting ass tattoos to show status(including the boys wondering how many ass tattoos their trainers have), those self same boys forced to eat shit as part of induction, an Imperial Fist having a wet dream about his Primarch Rogal Dorn, straight up quoting Mein Kampf, and Inquisitors performing straight up sexual torture.
Its old lore, but...yeah...