Being an omnivore allows us to get calories from multiple sources, which allows us to live long enough to breed. That's an evolutionary advantage.
After the point of breeding and raising children, evolution taps out.
So something being an evolutionary trait does not mean those traits lead to longevity. But it guarantees we're good fuckers.