Because evolution doesn't care about us beyond reproduction age (after which is when most cancers occur, especially considering that historically that age was between say 16 and 35).
Or even better phrased, because evolution doesn't care or plan at all, it's a blind mechanism.
If a local minimum is ok, we'll stay there for as long as some environmental or other evolutionary pressure gets to move us further.
Cancer wasn't a big issue for most of our existance as species, especially with lower life expectancies, more active lifestyles, zero obesity, zero pollutants, etc.
In evolutionary terms, modern lifestyles are not even a blip, especially post-industrial ones which don't even register.