Questions & Answers about Encerramos al perro en la casa.
Because Spanish often leaves out subject pronouns when the verb ending already shows who the subject is.
Encerramos already tells you the subject is we. So (nosotros) encerramos is optional.
You could add nosotros if you want emphasis or contrast:
Without nosotros, the sentence still sounds completely natural.