The story
PIE word *sóh₂wl̥ From sun + dog (“(figurative) a visible atmospheric or meteorological phenomenon”) ; metaphorically refers to the bright spots of light that appear to "dog" or follow the real sun, much like a dog follows its owner.
Etymology from Wiktionary, CC BY-SA 4.0.