While it may be tempting to assume there's some ancestral connection between pigs and dogs responsible for these shared sounds, the truth is that they're unrelated species. The similarities in vocalizations are purely coincidental, merely a result of dogs' versatile vocal capabilities.