The Sun sought a wife but people implored Jupiter to deny the wedding as sons of the Sun would cause hardship. Jupiter agreed. The story prevented people from seeking a wife for a thief thinking it would change his ways.
Evil often promotes evil.

Heinrich Steinhöwel (Of the Wicked Thief and the Sun)