"Dogs, like everyone, don't like the sun in their eyes." would be enough of an explanation for me. Predators even don't like the sun in their eyes, that's why they attack with sun behind them, if they can. Wouldn't make much sense for the dog to turn it's back in the most likely direction a predator is going to attack.