Glucose is an osmotically active substance that increases the osmolarity of the extracellular fluid. When blood sugar levels are high, water is drawn from the intracellular space into the extracellular space to balance the concentration. This additional water dilutes the sodium in the bloodstream, resulting in a measured sodium level that is lower than the actual concentration.