For instance, dogs would have improved sanitation by cleaning up food scraps