That usage of the definite article is called 'generic usage'. 'the dogs' then means something like 'the dogs taken as a whole group'. Stated differently, 'the dogs' in this context means "all of those species which can be grouped together under the category of 'dog' " This would include the wild dogs of Africa and the dingos of Australia as well as all domesticated dogs.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.