Original: The name of the gate came from the rising sun which decorated the entry, since the gate was oriented to the east.
Simplified: Since the sun rises in the east, it got the name Puerta del Sol.