It means a lock your pets up
Matt's was upset with his dog after he peed on the new plant that Matt bought.
Matt wants to let his dog know not to go near his plants.
Matt teaches his dog that he's not supposed to go near the plants.
Matt makes his dog stay in his kennel for the rest of the day.
Matt's dog learns that he's not supposed to touch Matt's plants and never goes near them again.
Matt's dog doesn't understand why it's being punished and feels bad.