It's not an uncommon pattern. Consider salmon, which travel upriver to spawn then die.
And the female octopus. So intelligent, but after they reproduce they stop eating and die. (Apparently they sometimes eat their mate beforehand, which I didn’t know until now). It seems like such a waste. I count myself lucky that humans don’t follow this pattern!