Why did Louis XIV of France consider himself the Sun King?

Because he was the sun of another king before him