Dogs come from wolves and were made to be safe to be around people over 1000's of years. The same is true for cats. They were originally very wild and like tigers, but going back as far as the Egyptians, 1000's of years ago, they tamed them and selected only the nicest, cutest, and friendliest ones to have pups/kittens. In the end we have the super cute cats and dogs of today. They were raised to love people.