Dog years and cat years are an estimate of the human age that matches a pet's stage of growth and aging. Dogs and cats mature much faster than people in their first two years and then age more slowly, so one fixed multiplier does not fit.
Size also changes the answer for dogs. In the AAHA/Zoetis chart, a small dog and a giant dog are both 24 at 2 years, but at 10 years the giant dog is 78 and the small dog is 56.