While it might seem surprising, the connection lies in the fact that "stunning" originally meant "to strike with amazement, as if by a thunderbolt". Over time, the meaning shifted to describe something or someone that is incredibly beautiful or impressive.