The immature kidneys of an infant can't concentrate urine or reabsorb electrolytes the way the kidneys of an adult can, so infants are at a higher risk for electrolyte imbalances.
Older adults are also at risk for electrolyte imbalances. Their kidneys have fewer functional nephrons, a decreased glomerular filtration rate, and a diminished ability to concentrate urine.