…male and female cattle (including the many wild versions such as the African Cape Buffalo) and wildebeest (a kind of antelope) have horns, while in most other bovids only the males have horns. Both male and female caribou (a kind of deer) grow antlers each year, while in most other deer only the males do so.
But why? Read this.