It sounds crazy, but suicidal reproduction - also known as semelparity - is common in nature. There are a surprising number of animals that immediately die after having sex or not long after the mating season. The males in particular are forced to live fast and die young, often only surviving for about a year.
Scientists aren't 100% sure why semelparity exists, but it could have something to do with adaptation and survival. Males that die right after mating aren't sticking around to eat all the food and take up space. In some scenarios, the male's death even makes mating more successful for females. Another theory is that it's just a "quirk" of nature with no logical explanation. Regardless of the exact reason, there are some really fascinating facts about animals that die shortly after sex.
Furcifer Labordi Chameleons Die After Mating (If They Don't Kill Each Other First)
Male Australian Redback Spiders Sacrifice Themselves After Sex
The Male Phascogale Is The Largest Mammal That Mates Itself To Death
The Male Little Red Kaluta Is The Only Grassland-Dwelling Mammal To Die Of Post-Mating Stress