Because it charged at him.
The article says “unrestrained” dog. It does NOT say...Charging, Barking or biting. The dog was just standing or sitting there........A case of officer target practice.