Many didn't. On top of that, evolution optimizes for reproduction, not long life. With few exceptions, cancer is a disease of the post child rearing aged folks.