In the phrase below, the last participle phrase looks attached to "pets" or rather to "cats and dogs".
What would be your first opinion?
Sam liked pets, including cats and dogs, encountered in the street.
“Including cats and dogs” is bracketed by commas and is therefore understood as a parenthesis.
Consequently, “encountered [. . .]” is understood to modify “pets”.