PERPETUATION IS SELECTED. “Natural selection has no foresight or intentions. In general, natural selection simply selects among individuals in a population, favoring traits that enable individuals to survive and reproduce, yielding more copies of those individuals’ genes in the next generation.” Sometimes not.
http://evolution.berkeley.edu/evolibrary/misconceptions_faq.php