Evolutionary speaking, why does a non-reproductive trait persist in humans?

Wouldn’t a trait that made people less likely to reproduce die out?

Unless it served a higher purpose of helping in survival and reproduction of other people… What are your thoughts?

Updates
+1 y
For example, if homosexuality (which can’t give out an outcome of giving an offspring) doesn’t serve the best interests of population why would it survive and persist in so many living species.

It either benefits the survival of the individual, either balances out the population’s number or helps with the reproduction of other humans/animals in the population.

I think there’s a reason it exists and that reason is beneficial for the rest of the population. But I wonder what’s that reason.
Evolutionary speaking, why does a non-reproductive trait persist in humans?
Post Opinion