Over 90% of all sexual behaviours performed by giraffes are homosexual in nature. And yet, they are still around, still thriving.
If there wasn't some intrinsic benefit to this, perhaps not directly related to procreation, then this behaviour wouldn't exist. Behaviour of a species in general...