That is an anti-survival behavior. Whatever genetic traits lead to it are, I believe, being eliminated.
All hail the almighty god of evolution. Able to eliminate genetic traits that lead to 'anti-survival behavior' as well as produce them in the first place. All conveniently available on-demand as required for the next 'just so' story. There truly is nothing that evolution can't do.
Well, except that it doesn't seem to be able to stop adherents from constantly begging the question and engaging in the most ridiculous logical fallacies offered as apologetics.