Meaning: This means that dogs use barking to make people or other dogs pay attention to them.
Choice of Words: Bark is the sound that dogs make. Attention means the act of paying attention to something or someone. When we say "dogs bark to get attention", we are saying that dogs make sounds to make people or other dogs notice them.