Dogs can pick up ticks when out and about on walks. Ticks are particularly common in long grass and woodland areas.
A Golden Retriever itching and scratching possible ticks
If there are lots of wild animals that enter your garden it is more likely that your dog will pick up a tick. Ticks can latch on easily if your dog just brushes past one.