What happened to their brothers?
Or you get into a situation where harvesting crops is morally wrong because it deprives animals of food.
It does deprive them of food, but to me it seems theres enough distance between the 2 things, that harvesting isn't morally implicated.
The only way to determine the gender of a chick (until very recently!) is a visual check done after the animal is born.