The cells lining the gut do two opposite jobs at once, drawing sodium and water back in while letting chloride and water out, and normally absorption wins.The inward flow runs on sodium transport: sodium moves in and water follows it back into the body. The outward flow runs through a chloride channel called CFTR: chloride leaves through this door, and water and sodium follow the chloride out into the gut. Both flows run all the time; normally more comes back in, so overall the gut is taking water in.
2. A toxin props the chloride door open
Toxins such as cholera toxin raise signaling molecules inside gut cells, and those molecules hold the chloride door open.The named culprits are cholera toxin and the enterotoxins of some E. coli strains. They raise signaling molecules inside the cell, such as cyclic AMP, so CFTR cannot close: chloride keeps flowing out into the gut, and water follows it out.
3. The sodium door is turned down
At the same time, one of the main transporters that absorbs sodium is turned down, so less water comes back in and the gut starts pouring it out.This is called secretory diarrhea. What follows the chloride out is not only water but also sodium, which is why diarrhea costs you both water and salt.
4. The route rehydration salts use
On the same cells, the route where sodium and glucose enter together still works in most of these diarrheas, and oral rehydration salts use it to bring water back.This route is SGLT1, and each time it moves cargo it carries two sodium ions together with one glucose molecule. Rehydration salts contain sodium and glucose in set proportions; the two enter the cell together, and water follows them back into the blood by osmosis. Toxins like cholera toxin largely leave this route alone, so even while the gut is still pouring water out, rehydration salts can still bring water back.
That is also why rehydration salts don't stop diarrhea: they replace water that is lost; they do not stop the gut from pouring it out.