I had a bunch of dogs as a kid and none of them got cancer. It wasn't until I got older I noticed it's pretty common among older dogs.
Seems golden retrievers are the most prone. Every one I've known has died of cancer and the first tumors always seem to appear on the hind legs.