Another way to say "humans keep non-human animals as pets" is "Pets are non-human companions to humans."