1) There is a common misconception that natural selection selects for individuals. Actually, natural selection selects for genes. Why is this important?
Consider animal a who has gene set A and animal b who has gene set B.
These animals mate and produce 10 offspring, each called ab, who each have a different combination of the gene sets A and B, called AB.
The first of the second generation, ab1, mates with animal c who has gene set C.
Their 10 offspring are each called abc and have varying gene sets ABC.
Now assume that the specific combination of A and B, AB1, found in animal ab is the most advantageous combination out of all 10 existent combinations. The children of ab1 and c will then have a more advantageous gene set than the children of ab1's siblings. These children will survive whilst the others won't meaning that gene set AB1 will continue whilst the others will become extinct.
However, there is still competition between these gene sets even though AB1 will become victorious. If the gene sets of the other combinations support AB1 instead of competing with it then AB1 would become even more advantageous.
If you look at the example of hive animals, say an ants, this is exactly what happens. The queen ant is the only fertile female so any descendants will be sure to have her gene set. The vast majority of the ants are infertile and support the colony, and especially the queen, to ensure the survival of this one gene set. Their own gene sets will become extinct but that is irrelevant because the most advantageous gene set is held by the queen.
2) Animals simply aren't as good at determining sex as we are and don't have any of the hang ups that we have either. Clearly an animal that has sex with anything and an animal that is picky over determining gender will have a survival advantage.
Farmers put coloured chalk on the underside of their rams during mating season with each ram having a different colour. When the rams have sex with the ewes, they leave a coloured mark on the wool on the ewes back. The farmers use this to tell which ewes have been impregnated because the rams are able to tell when a ewe has been fertilised. If a ewe has got 1 colour on her back then she is likely to have conceived but if she has many colours then she might be infertile.
However, the rams can't tell the difference between male and female and so each ram ends up with every colour on their back as they cannot, obviously, be fertilised. This doesn't make them homosexual and it frustrates me immensely when gay advocates point to similar so-called homosexual incidents. They will just have sex with anything. That is clearly distinct from homosexuality in humans.