Hi Diego - Any means "one or some of a thing". We use it when talking about plural or uncountable nouns.
e.g. 1) Do you have any books by Charles Dickens? (books is a plural noun, so we use "any" when asking a question about it)
e.g. 2) I didn't eat any meat yesterday (meat is uncountable. We can't say "I ate two meats", for example, so we use "any" instead).
Here, pets is a plural noun, so we use "any" when answering negatively. If I have more than one pet, I can say "I have some rabbits", for example. (We use "some" when answering a question about plural nouns positively).
Read this for more info:
https://www.oxfordlearnersdictionaries.com/definition/english/any_1?q=any
Hope this helps
Adam