A kink prevents the mercury from falling down easily.
A kink in the glass tube breaks the mercury as it contracts, storing the highest temperature reading. The glass tube is shaped like a lens to magnify the thin mercury thread. Shaking the thermometer resets the mercury back into the bulb.