Another way to say "a back yard is for keeping a dog" is "Dogs are kept in back yards."