Another factor is that dogs can’t see colors the same way humans do. They have a limited spectrum, and bright yellow—yes, tennis balls are yellow—is one color that stands out to them.