There are some things that can affect both plants, like verticillium wilt and root-knot nematodes. If this is bagged soilless mix rather than garden soil, and the tomatoes were healthy, I wouldn't worry about it. Did the tomatoes have some kind of problem?