Fraternity hazing almost always did have an element of that.
A lot of my fraternity brothers came out of the closet. Same with my wife’s fraternity(little sister). Gay men were attracted to the male camaraderie.
There was always the standing jokes about the guys who were the last ones to know they were gay.
Oddly, they had sex with women quite often.