I suppose it depends on their individual immune systems. If they didn't live in close contact, they may not share the same immune system. One may have a weaker immune system than the other making it possible for the cancer to spread easily one way but not the other.