Explanation: The sentence implies that dogs are considered human's friends for a reason, not by chance. Therefore, the word that negates 'by accident' and suggests a deliberate or natural connection is 'not'.
Answer: not