When walking on the riverbed/lake/ocean floor, if you double tap the forward button to initiate running, the character will move down into the block level below the one they're standing on.
This happens in both survival mode, creative mode, and prevents flying while in creative.
https://minecraft.gamepedia.com/Swimming