The animal is being used to make dildos. That’s a sexual purpose.
Artificial insemination is done to ensure neither animal is harmed while continuing the species in a healthy, medical manner. Veterinary purposes, obviously, are benefiting the animal. Masturbating an animal so a human can use a realistic horse dildo is not the same thing.